Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp] / tests / command / sysfiles.sh
index 2bfd6a5b03163a3f8ae86752531694c2d7e5a4fd..d4f59052de98b9d5e99820a2dce6beffbe221a89 100755 (executable)
@@ -22,6 +22,10 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }