Also search for panics and output 10 lines of context around it

This commit is contained in:
Preetha Appan
2017-11-01 13:53:03 -05:00
parent a66fc52deb
commit a187491693

View File

@@ -236,6 +236,7 @@ test-nomad: dev ## Run Nomad test suites
@echo "Exit code: $$(cat exit-code)" >> test.log
@grep -A1 -- '--- FAIL:' test.log || true
@grep '^FAIL' test.log || true
@grep -A10 'panic' test.log || true
@test "$$TRAVIS" == "true" && cat test.log || true
@if [ "$$(cat exit-code)" == "0" ] ; then echo "PASS" ; exit 0 ; else exit 1 ; fi