diff options
| -rwxr-xr-x | validation/test-suite | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/validation/test-suite b/validation/test-suite index fa4cd36c..ce2ca454 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -206,12 +206,6 @@ do_test() verbose "Using command : $cmd" - # grab the expected output - sed -n '/check-output-start/,/check-output-end/p' $file \ - | grep -v check-output > "$file".output.expected - sed -n '/check-error-start/,/check-error-end/p' $file \ - | grep -v check-error > "$file".error.expected - # grab the expected exit value expected_exit_value=$check_exit_value verbose "Expecting exit value: $expected_exit_value" @@ -230,6 +224,10 @@ do_test() eval ignore=\$check_${stream}_ignore [ $ignore -eq 1 ] && continue + # grab the expected output + sed -n "/check-$stream-start/,/check-$stream-end/p" $file \ + | grep -v check-$stream > "$file".$stream.expected + diff -u "$file".$stream.expected "$file".$stream.got > "$file".$stream.diff if [ "$?" -ne "0" ]; then error "actual $stream text does not match expected $stream text." |
