Pass CLEANUP=0 to test_e2e to leave logs

This commit is contained in:
Tim Hockin 2022-06-11 10:40:21 -07:00
parent 7868e6093a
commit 9f02915f02
1 changed files with 6 additions and 2 deletions

View File

@ -1958,5 +1958,9 @@ done
# Finally...
echo
echo "cleaning up $DIR"
rm -rf "$DIR"
if [[ "${CLEANUP:-}" == 0 ]]; then
echo "leaving logs in $DIR"
else
echo "cleaning up $DIR"
rm -rf "$DIR"
fi