Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp] / tests / stats / percentiles-compatible.sh
index 63a19068d6705b8329f5a581db9a50ba28193153..d1e724d70f1289e4027c1bdd93d3e82a272f653d 100755 (executable)
@@ -23,9 +23,12 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
-     :
 }