Improve recode-copy-bug failure reporting.
[pspp-builds.git] / tests / bugs / computebug.sh
index 24e7fedaa7f9951c52df293729cc4b2cc0192e48..af19f82b9c93f8549af6be75be9e7b189223071b 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -60,7 +61,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare output"
-diff -b -B -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
+diff -b -w $TEMPDIR/pspp.list $top_srcdir/tests/bugs/computebug.out
 if [ $? -ne 0 ] ; then fail ; fi
 
 pass;