summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/test
diff options
context:
space:
mode:
authorAdrian Villin <avillin@cisco.com>2024-05-10 04:19:35 -0400
committerAdrian Villin <avillin@cisco.com>2024-05-17 16:47:00 +0000
commit688ac5ae5513e5ed45be5cc4376bb4c1dd51258b (patch)
treec089c9af30b1d5a551d5fdc55d122e198f309c66 /extras/hs-test/test
parent595d8cb6689a2c6f6f4444125127270b2e10b380 (diff)
hs-test: fixed timed out tests passing in the CI
Type: test Change-Id: Id05ea56bc5dfd80d42b8600cf11e763e25420bd0 Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/test')
-rw-r--r--[-rwxr-xr-x]extras/hs-test/test3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/hs-test/test b/extras/hs-test/test
index fd17feb2c50..398e2b39edb 100755..100644
--- a/extras/hs-test/test
+++ b/extras/hs-test/test
@@ -89,3 +89,6 @@ fi
mkdir -p summary
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 \
+ && echo "Summary generated -> summary/failed-summary.log" \ No newline at end of file