Fixed bug 12931
[pspp-builds.git] / tests / command / oneway.sh
index 22e88456895c137d3fc7253d2b9b2c623df9aee7..6245ec8fd28e3d7e2941efdfad5c3392a4b620c3 100755 (executable)
@@ -15,7 +15,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
 }