Initial version
[pspp] / tests / bugs / compute-lv.sh
index e310cfb0dda67bafaad92721a4fa15f5904b6f0c..c1b4fec57ee07830dbc9156ddcda24013a8e52b9 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -70,7 +71,8 @@ if [ $? -ne 0 ] ; then fail ; fi
 
 
 activity="compare output"
-diff -B -b pspp.list - << EOF
+perl -pi -e 's/^\s*$//g' pspp.list
+diff -b pspp.list - << EOF |perl -e 's/^\s*$//g'
 1.1 DATA LIST.  Reading free-form data from the command file.
 +----------------+------+
 |    Variable    |Format|