Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / command / do-if.sh
index 185dc4e4fc4488cb9ad86974f776f39a5e48de21..8cb6b824016542a45e54326d9f52091e05a1ce23 100755 (executable)
@@ -21,8 +21,12 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
-     #rm -rf $TEMPDIR
+     rm -rf $TEMPDIR
 }