From e9d5572e0ac73d65a3e9fdd4fa192f41dbc266e1 Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Tue, 16 May 2023 23:12:38 +0800 Subject: [PATCH 1/2] test failed ci exit --- run-unit-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-unit-tests.sh b/run-unit-tests.sh index 8be29f0e..1b0c28ab 100755 --- a/run-unit-tests.sh +++ b/run-unit-tests.sh @@ -64,6 +64,9 @@ if [ -f /gtest-parallel ]; then python3 /gtest-parallel $tests --dump_json_test_results=/tmp/gtest_parallel_results.json \ --workers=$gtest_workers --retry_failed=$RETRY_FAILED -d /tmp \ ./pulsar-tests --gtest_filter='-CustomLoggerTest*' + if [ -d "/tmp/failed" ]; then + exit 1; + fi # The customized logger might affect other tests ./pulsar-tests --gtest_filter='CustomLoggerTest*' RES=$? From bbedda79833846dbe23686fd033f6ae7bb014321 Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Tue, 16 May 2023 23:43:02 +0800 Subject: [PATCH 2/2] fix --- run-unit-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-unit-tests.sh b/run-unit-tests.sh index 1b0c28ab..cc450abc 100755 --- a/run-unit-tests.sh +++ b/run-unit-tests.sh @@ -64,7 +64,8 @@ if [ -f /gtest-parallel ]; then python3 /gtest-parallel $tests --dump_json_test_results=/tmp/gtest_parallel_results.json \ --workers=$gtest_workers --retry_failed=$RETRY_FAILED -d /tmp \ ./pulsar-tests --gtest_filter='-CustomLoggerTest*' - if [ -d "/tmp/failed" ]; then + ls /tmp/ + if [ -d "/tmp/gtest-parallel-logs/failed" ]; then exit 1; fi # The customized logger might affect other tests