Delete output directory only upon successful run to make debugging easier.

This commit is contained in:
Joe Testa 2020-11-05 20:25:34 -05:00
parent 0d9881966c
commit 00dc22b00b

View File

@ -707,9 +707,9 @@ run_builtin_policy_test "Hardened OpenSSH Server v8.0 (version 1)" "8.0p1" "test
if [[ $num_failures == 0 ]]; then if [[ $num_failures == 0 ]]; then
echo -e "\n${GREENB}ALL TESTS PASS!${CLR}\n" echo -e "\n${GREENB}ALL TESTS PASS!${CLR}\n"
rm -rf $TEST_RESULT_DIR
else else
echo -e "\n${REDB}${num_failures} TESTS FAILED!${CLR}\n" echo -e "\n${REDB}${num_failures} TESTS FAILED!${CLR}\n"
fi fi
rm -rf $TEST_RESULT_DIR
exit 0 exit 0