summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/hs_test.sh
diff options
context:
space:
mode:
authorAdrian Villin <avillin@cisco.com>2024-06-26 10:08:47 +0200
committerFlorin Coras <florin.coras@gmail.com>2024-06-28 05:38:07 +0000
commit6d44aabe8d5e0015fd851788ef7c7bee48340dee (patch)
tree0a8573c1bb1986a3bbf1479837e9a26701510e6e /extras/hs-test/hs_test.sh
parent3e0600bb126a85c1278c40cdf9b2e40a08d697bc (diff)
hs-test: cat summary file after a failed test run
- as per Florin's request Type: test Change-Id: Id76fda0e2dfac7e58b703a8d6f096aa7b5be31c7 Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/hs_test.sh')
-rw-r--r--extras/hs-test/hs_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/hs-test/hs_test.sh b/extras/hs-test/hs_test.sh
index 4914e6055eb..107fc686176 100644
--- a/extras/hs-test/hs_test.sh
+++ b/extras/hs-test/hs_test.sh
@@ -95,5 +95,5 @@ mkdir -p summary
# shellcheck disable=SC2086
sudo -E go run github.com/onsi/ginkgo/v2/ginkgo --no-color --trace --json-report=summary/report.json $ginkgo_args -- $args
-jq -r '.[0] | .SpecReports[] | select((.State == "failed") or (.State == "timedout") or (.State == "panicked")) | select(.Failure != null) | "TestName: \(.LeafNodeText)\nSuite:\n\(.Failure.Location.FileName)\nMessage:\n\(.Failure.Message)\n Full Stack Trace:\n\(.Failure.Location.FullStackTrace)\n"' summary/report.json > summary/failed-summary.log \
+jq -r '.[0] | .SpecReports[] | select((.State == "failed") or (.State == "timedout") or (.State == "panicked")) | select(.Failure != null) | "TestName: \(.LeafNodeText)\nSuite:\n\(.Failure.FailureNodeLocation.FileName)\nMessage:\n\(.Failure.Message)\n Full Stack Trace:\n\(.Failure.Location.FullStackTrace)\n"' summary/report.json > summary/failed-summary.log \
&& echo "Summary generated -> summary/failed-summary.log"