From b4d37c88bd0d5fed1b43c5f2a0e820265a0408c5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Mar 2021 15:32:38 +0100 Subject: [PATCH] Another fix for rerunning the tests after LeakSanitizer crash Don't forget to unset "rc" if we're rerunning the test to avoid still giving an error even if succeeds the second time. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cfc4ad1fe..06181950f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -205,6 +205,7 @@ jobs: # See https://github.com/google/sanitizers/issues/1353 if fgrep -q 'LeakSanitizer has encountered a fatal error' test.out; then echo '+++ Rerunning the tests once again after LeakSanitizer crash +++' + unset rc ./test || rc=$? fi fi