diff options
author | Matus Fabian <matfabia@cisco.com> | 2024-08-23 15:52:54 +0200 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2024-08-23 15:52:54 +0200 |
commit | 4306a3e8f4f8016e7571be75b6418b77ee2f701d (patch) | |
tree | bf339a0e723dffedc50bf8a9f72193be7a0a105f /extras/hs-test/hs_test.sh | |
parent | 225e6f86a4fdc6ec00da4527e7697cd122b16783 (diff) |
hs-test: core dump improvement
- load vpp plugin libraries path in gdb
- if core dump deceted change message in summary and show bt
Type: test
Change-Id: If5d44d29703edd16c816efc9d29e6a7a1b20613a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'extras/hs-test/hs_test.sh')
-rw-r--r-- | extras/hs-test/hs_test.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extras/hs-test/hs_test.sh b/extras/hs-test/hs_test.sh index c72ef73301e..5d94ea88ede 100644 --- a/extras/hs-test/hs_test.sh +++ b/extras/hs-test/hs_test.sh @@ -130,10 +130,14 @@ if [ $? != 0 ]; then \(.LeafNodeText) Suite: \(.Failure.FailureNodeLocation.FileName) -Message: -\(.Failure.Message)" +Message:\n" ++(if .ReportEntries? then .ReportEntries[] | select(.Name == "VPP Backtrace") | +"\tVPP crashed +Full Back Trace: +\(.Value.Representation | ltrimstr("{{red}}") | rtrimstr("{{/}}"))" else + "\(.Failure.Message)" + (if .Failure.Message == "A spec timeout occurred" then "\n" else "\nFull Stack Trace: -\(.Failure.Location.FullStackTrace)\n" end)' summary/report.json > summary/failed-summary.log \ +\(.Failure.Location.FullStackTrace)\n" end) end)' summary/report.json > summary/failed-summary.log \ && echo "Summary generated -> summary/failed-summary.log" fi |