X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Foneway.sh;h=6245ec8fd28e3d7e2941efdfad5c3392a4b620c3;hb=5a33cc6d78fe87ff5e9bd32ea4af3f895e4ad2fc;hp=f647e4e0bbbb8fd6b6269723ed99e91a2cc21a0c;hpb=c87fb686f323f651a1d3f3892c31bf66788916d9;p=pspp diff --git a/tests/command/oneway.sh b/tests/command/oneway.sh index f647e4e0bb..6245ec8fd2 100755 --- a/tests/command/oneway.sh +++ b/tests/command/oneway.sh @@ -3,6 +3,7 @@ # This program tests that the ONEWAY anova command works OK TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -14,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 } @@ -46,8 +51,8 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program" -cat > $TEMPDIR/out.stat < $TESTFILE <