Rewrite PSPP output engine.
[pspp-builds.git] / tests / command / do-if.sh
index 185dc4e4fc4488cb9ad86974f776f39a5e48de21..b3bbed7fac36d8085367b9fbdd0ac7a71fc73862 100755 (executable)
@@ -21,8 +21,12 @@ export LANG
 
 cleanup()
 {
+     if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then 
+       echo "NOT cleaning $TEMPDIR" 
+       return ; 
+     fi
      cd /
-     #rm -rf $TEMPDIR
+     rm -rf $TEMPDIR
 }
 
 
@@ -108,7 +112,6 @@ $SUPERVISOR $PSPP --testing-mode test1.pspp
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare test1 results"
-perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
 diff -u $TEMPDIR/test1.out $TEMPDIR/test1.expected
 if [ $? -ne 0 ] ; then fail ; fi