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:
parent
24c0b1c5e0
commit
0fff0d1d9e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user