Fixed problem which caused the test to abort if the system had no pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 10 Feb 2005 00:42:03 +0000 (00:42 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 10 Feb 2005 00:42:03 +0000 (00:42 +0000)
config directory installed.

tests/bugs/html-frequency.sh

index ba000ee2efc9c9f7066d1d46f8b26b2c8bc24b8a..7c12397abcd9da03c34ae89c51f13bce8be84128 100755 (executable)
@@ -13,7 +13,7 @@ here=`pwd`
 # ensure that top_srcdir is absolute
 cd $top_srcdir ; top_srcdir=`pwd`
 
-STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH=$top_srcdir/config
 
 cleanup()
 {
@@ -48,7 +48,7 @@ mkdir -p $TEMPDIR
 
 
 activity="create data"
-cat << EOF > $TEMPDIR/ff.stat 
+cat << EOF > $TESTFILE
 
 data list free /v1 v2.
 begin data.
@@ -67,7 +67,7 @@ if [ $? -ne 0 ] ; then no_result ; fi
 cd $TEMPDIR
 
 activity="run data"
-$SUPERVISOR $here/../src/pspp -o html $TEMPDIR/ff.stat
+$SUPERVISOR $here/../src/pspp -o html $TESTFILE
 if [ $? -ne 0 ] ; then fail ; fi