Switch test runner output filter sed to extended regex (-E)

This commit is contained in:
Thomas Jensen 2021-02-11 10:47:16 +01:00
parent 4a272c348c
commit c370772ee0
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
-s
:INPUT
:OUTPUT-FILTER
1s/^.\+: /boxes: /
1s/^.+?: /boxes: /
1s/-- s$/-- 's'/
:EXPECTED-ERROR 1
boxes: option requires an argument -- 's'

View File

@ -3,7 +3,7 @@
:INPUT
foo
:OUTPUT-FILTER
1s/^.\+: /boxes: /
1s/^.+?: /boxes: /
1s/-- s$/-- 's'/
:EXPECTED-ERROR 1
boxes: option requires an argument -- 's'

View File

@ -84,7 +84,7 @@ export BOXES=../boxes-config
cat $testInputFile | $boxesBinary $boxesArgs >$testOutputFile 2>&1
declare -ir actualReturnCode=$?
cat $testOutputFile | tr -d '\r' | sed -f $testFilterFile | diff - $testExpectationFile
cat $testOutputFile | tr -d '\r' | sed -E -f $testFilterFile | diff - $testExpectationFile
if [ $? -ne 0 ]; then
>&2 echo "Error in test case: $testCaseFile (top: actual; bottom: expected)"
exit 5