Fixed bug 12931
[pspp-builds.git] / tests / command / oneway-with-splits.sh
index 6b510bfc94422263e87831f98863eb938717bf45..3075467cbd114faf98ba6cb68114b6c40bee42a9 100755 (executable)
@@ -16,7 +16,11 @@ export STAT_CONFIG_PATH=$top_srcdir/config
 
 cleanup()
 {
-     rm -rf $TEMPDIR
+    if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo Not cleaning $TEMPDIR;
+       return ; 
+    fi
+    rm -rf $TEMPDIR
 }