X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Fkeep-all.sh;h=408255d2a29f92f319d1146b22fd77a27e8027fa;hb=5269c22bd135c65d5c8c9028c2ca2ae17cc6a192;hp=1450889ffb0e7c566b6e839066fc0ec48ace4d03;hpb=9aff19b717bcc242e16d04c34f348fd79ebdd685;p=pspp-builds.git diff --git a/tests/bugs/keep-all.sh b/tests/bugs/keep-all.sh index 1450889f..408255d2 100755 --- a/tests/bugs/keep-all.sh +++ b/tests/bugs/keep-all.sh @@ -21,6 +21,10 @@ export STAT_CONFIG_PATH cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -74,14 +78,14 @@ EOF activity="compare output ($mode)" - perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list - diff -u -b -w $TEMPDIR/pspp.list - << EOF - a b c d e f g h i j k l m n o p q r s t u v w x y z --- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 - x y z a b c d e f g h i j k l m n o p q r s t u v w --- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -24 25 26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 + diff -c $TEMPDIR/pspp.csv - << EOF +Table: Data List +a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z +1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 + +Table: Data List +x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w +24,25,26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 EOF if [ $? -ne 0 ] ; then fail ; fi done