hs-test: cat summary file after a failed test run 75/40975/2
authorAdrian Villin <[email protected]>
Wed, 26 Jun 2024 08:08:47 +0000 (10:08 +0200)
committerFlorin Coras <[email protected]>
Fri, 28 Jun 2024 05:38:07 +0000 (05:38 +0000)
- as per Florin's request

Type: test

Change-Id: Id76fda0e2dfac7e58b703a8d6f096aa7b5be31c7
Signed-off-by: Adrian Villin <[email protected]>
extras/hs-test/hs_test.sh
extras/hs-test/script/compress.sh

index 4914e60..107fc68 100644 (file)
@@ -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"
index 1f0205c..c6b23cf 100755 (executable)
@@ -29,5 +29,7 @@ then
     else
         echo "Not compressing files in temporary directories from test runs."
     fi
+    echo "*************************** SUMMARY ***************************"
+    cat "${HS_ROOT}/summary/failed-summary.log"
     exit 1
 fi