Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / command / rename.sh
index 2837223ed6afcdccf493982c40f0fdd8e3578544..ff46486a3f0ef81ae420e90a6bf2da75539f42e0 100755 (executable)
@@ -22,6 +22,10 @@ PSPP=$top_builddir/src/ui/terminal/pspp
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }