Use sed instead of perl in assert test.
This commit is contained in:
parent
a904bc7797
commit
77a03af394
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ run_test() {
|
||||||
> >(set +x; tee "${OUTFILE}.${testname}.stdout"); } \
|
> >(set +x; tee "${OUTFILE}.${testname}.stdout"); } \
|
||||||
2> >(set +x; tee "${OUTFILE}.${testname}.stderr" >&2) 0</dev/null
|
2> >(set +x; tee "${OUTFILE}.${testname}.stderr" >&2) 0</dev/null
|
||||||
|
|
||||||
perl -pi -e 's/ *$//s' "${OUTFILE}.${testname}.stdout"
|
sed -i -e 's/ *$//' "${OUTFILE}.${testname}.stdout"
|
||||||
perl -pi -e 's/ *$//s' "${OUTFILE}.${testname}.stderr"
|
sed -i -e 's/ *$//' "${OUTFILE}.${testname}.stderr"
|
||||||
|
|
||||||
diff -u "${ORIGFILE}.${testname}.stdout" "${OUTFILE}.${testname}.stdout" || diff_failure
|
diff -u "${ORIGFILE}.${testname}.stdout" "${OUTFILE}.${testname}.stdout" || diff_failure
|
||||||
diff -u "${ORIGFILE}.${testname}.stderr" "${OUTFILE}.${testname}.stderr" || diff_failure
|
diff -u "${ORIGFILE}.${testname}.stderr" "${OUTFILE}.${testname}.stderr" || diff_failure
|
||||||
|
|
Loading…
Reference in a new issue