Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / tests / command / match-files.sh
index bb4107e58fd4962a9d1d14dba8a192c6201ccdf6..965539c8815fecc490e020b7e53f35b6afaba659 100755 (executable)
@@ -21,9 +21,12 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
     cd /
     rm -rf $TEMPDIR
-    :
 }