hs-test: fixed timed out tests passing in the CI
[vpp.git] / extras / hs-test / test
old mode 100755 (executable)
new mode 100644 (file)
index fd17feb..398e2b3
@@ -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