Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / expressions / variables.sh
index 8ffe3c8d87bebd533d39f84d1435d7744ed83ccb..c4a2d5d46e5908aabd05e5fc3da29f1e61d419c6 100755 (executable)
@@ -19,6 +19,10 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }