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.
This commit is contained in:
Vadim Zeitlin 2021-03-23 15:32:38 +01:00
parent 73f5b0e7b7
commit b4d37c88bd

View File

@ -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