Skip to content

Commit

Permalink
Fail run conformance test make target on test failure (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarams87 authored Oct 23, 2023
1 parent 29b45e3 commit 725ff40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conformance/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ run-conformance-tests: ## Run conformance tests
--report-output=output.txt; cat output.txt" | tee output.txt
sed -e '1,/CONFORMANCE PROFILE/d' output.txt > conformance-profile.yaml
rm output.txt
$(eval result_core=$(shell cat conformance-profile.yaml | yq '.profiles[0].core.result'))
$(eval result_extended=$(shell cat conformance-profile.yaml | yq '.profiles[0].extended.result'))
[ "$(result_core)" != "failure" ] && [ "$(result_extended)" != "failure" ] || exit 2

.PHONY: cleanup-conformance-tests
cleanup-conformance-tests: ## Clean up conformance tests fixtures
Expand Down

0 comments on commit 725ff40

Please sign in to comment.