From a479071340e16679b80471a1d7cfcc41e4571d90 Mon Sep 17 00:00:00 2001 From: jiangying Date: Tue, 16 Aug 2022 17:43:37 +0800 Subject: [PATCH] [ci] make ci no-fail-fast --- scripts/auto_rerun_test.ps1 | 2 +- scripts/auto_rerun_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/auto_rerun_test.ps1 b/scripts/auto_rerun_test.ps1 index 59c5216b1a..197909abd9 100644 --- a/scripts/auto_rerun_test.ps1 +++ b/scripts/auto_rerun_test.ps1 @@ -8,7 +8,7 @@ $env:RUSTC_BOOTSTRAP=1 $env:RUST_MIN_STACK=8*1024*1024 $env:RUST_LOG="OFF" $env:RUST_BACKTRACE=0 -cargo xtest --exclude starcoin-move-prover -j 15 -- --test-threads=10 --color never --format pretty | Tee-Object "$TEST_RESULT_FILE" +cargo xtest --no-fail-fast --exclude starcoin-move-prover -j 15 -- --test-threads=10 --color never --format pretty | Tee-Object "$TEST_RESULT_FILE" $failed_tests=Select-String -Pattern 'test .* +\.\.\. FAILED' -Path "./target/debug/test_result.txt" -AllMatches Write-Host "All failed tests are redirected to file: $TEST_RESULT_FAILED_FILE" -ForegroundColor Green diff --git a/scripts/auto_rerun_test.sh b/scripts/auto_rerun_test.sh index e3ffc0cae4..e78ac60a02 100755 --- a/scripts/auto_rerun_test.sh +++ b/scripts/auto_rerun_test.sh @@ -14,7 +14,7 @@ echo check ulimits ulimit -a #pleanse ensure tow test command's argument is same. -RUST_LOG=OFF RUST_BACKTRACE=0 cargo xtest --exclude starcoin-move-prover -j 15 -- --test-threads=10 --color never --format pretty |tee "$TEST_RESULT_FILE" ||true +RUST_LOG=OFF RUST_BACKTRACE=0 cargo xtest --no-fail-fast --exclude starcoin-move-prover -j 15 -- --test-threads=10 --color never --format pretty |tee "$TEST_RESULT_FILE" ||true grep -e '^test[[:space:]][^[:space:]]*[[:space:]]\+\.\.\.[[:space:]]FAILED' "$TEST_RESULT_FILE" >"$TEST_RESULT_FAILED_FILE" ||true status=0