From 00dc22b00bf282e1d41128b423b39508d127231a Mon Sep 17 00:00:00 2001 From: Joe Testa Date: Thu, 5 Nov 2020 20:25:34 -0500 Subject: [PATCH] Delete output directory only upon successful run to make debugging easier. --- docker_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_test.sh b/docker_test.sh index d2aed42..f736528 100755 --- a/docker_test.sh +++ b/docker_test.sh @@ -707,9 +707,9 @@ run_builtin_policy_test "Hardened OpenSSH Server v8.0 (version 1)" "8.0p1" "test if [[ $num_failures == 0 ]]; then echo -e "\n${GREENB}ALL TESTS PASS!${CLR}\n" + rm -rf $TEST_RESULT_DIR else echo -e "\n${REDB}${num_failures} TESTS FAILED!${CLR}\n" fi -rm -rf $TEST_RESULT_DIR exit 0