Skip to content

Commit

Permalink
Fail test if resource creation fails
Browse files Browse the repository at this point in the history
When we create resources to run the YAML tests, we should fail tests
if the resource creation failed. Today this is ignored, which leads
to not running the tests at all!

Fixes #1396
  • Loading branch information
afrittoli authored and tekton-robot committed Oct 15, 2019
1 parent 9e10c01 commit ed7e0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function run_tests() {

function run_yaml_tests() {
echo ">> Starting tests for the resource ${1}"
create_resources ${1}
create_resources ${1} || fail_test "Could not create ${1} from the examples"
if ! run_tests ${1}; then
return 1
fi
Expand Down

0 comments on commit ed7e0ca

Please sign in to comment.