sed/multi_test: print comment for current test, not next one

This is visible when e.g. 8.20 is failing:

not ok 96 8.20 # \ in y command

8.20's comment should be '[ as an s delimiter and its escapes'.
This commit is contained in:
Yuri Pankov 2020-07-13 01:32:37 +00:00
parent 6722f6e577
commit e4bfd2a675
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363138

View File

@ -92,9 +92,9 @@ result()
cp current.out $REGRESS/${TESTNAME}
fi
if diff -c $REGRESS/${TESTNAME} current.out ; then
echo "ok $MARK $TESTNAME # $TODO$COMMENT"
echo "ok $MARK $TESTNAME # $TODO$OCOMMENT"
else
echo "not ok $MARK $TESTNAME # $TODO$COMMENT"
echo "not ok $MARK $TESTNAME # $TODO$OCOMMENT"
fi 1>&4 2>&5
}
@ -102,6 +102,7 @@ result()
mark()
{
[ $MARK -gt 0 ] && result
OCOMMENT=$COMMENT
MARK=`expr $MARK + 1`
TESTNAME=$1
exec 1>&4 2>&5