Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / command / file-label.sh
index 4b6ab0e62200ea9af07b5cced5e2e7627ac1f8ec..e6211b4d4b8090189628ddd8c11e6fcc4de98122 100755 (executable)
@@ -22,6 +22,10 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
      rm -rf $TEMPDIR
 }