Skip to content

Commit c6a87fa

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 c4dfc25 commit c6a87fa

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
@@ -37,23 +37,19 @@ install_pipeline_crd
3737
install_triggers_crd
3838

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

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

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

5350

5451
header "Running examples tests"
55-
$(dirname $0)/e2e-tests-examples.sh || failed=1
56-
(( failed )) && echo "failed example tests"
52+
$(dirname $0)/e2e-tests-examples.sh || { failed=1 && echo "failed example tests"; }
5753

5854
(( failed )) && fail_test
5955
success

0 commit comments

Comments
 (0)