Skip to content

Commit 3b38378

Browse files
committed
Print name of the tests which fail
Before there was no way to know which particular tests have failed without going through all logs. Now, it will print which tests have failed.
1 parent 7dd2d92 commit 3b38378

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

test/e2e-tests.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,19 @@ install_pipeline_crd
3636
install_triggers_crd
3737

3838
header "Running yaml tests"
39-
$(dirname $0)/e2e-tests-yaml.sh || failed=1
40-
(( failed )) && echo "failed yaml tests"
39+
$(dirname $0)/e2e-tests-yaml.sh || { failed=1 && echo "failed yaml tests"; }
4140

4241
header "Running ingress tests"
43-
$(dirname $0)/e2e-tests-ingress.sh || failed=1
44-
(( failed )) && echo "failed ingress tests"
42+
$(dirname $0)/e2e-tests-ingress.sh || { failed=1 && echo "failed ingress tests"; }
4543

4644
# Run the integration tests
4745
header "Running Go e2e tests"
48-
go_test_e2e -timeout=20m ./test || failed=1
49-
go_test_e2e -timeout=20m ./cmd/... || failed=1
50-
(( failed )) && echo "failed integration tests"
46+
go_test_e2e -timeout=20m ./test || { failed=1 && echo "failed integration tests"; }
47+
go_test_e2e -timeout=20m ./cmd/... || { failed=1 && echo "failed integration tests"; }
5148

5249

5350
header "Running examples tests"
54-
$(dirname $0)/e2e-tests-examples.sh || failed=1
55-
(( failed )) && echo "failed example tests"
51+
$(dirname $0)/e2e-tests-examples.sh || { failed=1 && echo "failed example tests"; }
5652

5753
(( failed )) && fail_test
5854
success

0 commit comments

Comments
 (0)