]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make it possible to keep the test directory when running test suite
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 24 Jul 2020 18:17:43 +0000 (20:17 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 24 Jul 2020 18:17:43 +0000 (20:17 +0200)
test/run

index eb17a04fe350730c2fb91d7dc00d9a1f88d1197b..c24153703a5bb02b096a63da75eaf15fc1704a73 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -545,8 +545,9 @@ for suite in $suites; do
 done
 
 cd /
-rm -rf $ABS_TESTDIR
-
+if [ -z "$KEEP_TESTDIR"]; then
+    rm -rf $ABS_TESTDIR
+fi
 if $skipped; then
     exit $skip_code
 else