mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-24 23:46:32 +00:00
Use sed instead of perl in assert test.
This commit is contained in:
@@ -22,8 +22,8 @@ run_test() {
|
||||
> >(set +x; tee "${OUTFILE}.${testname}.stdout"); } \
|
||||
2> >(set +x; tee "${OUTFILE}.${testname}.stderr" >&2) 0</dev/null
|
||||
|
||||
perl -pi -e 's/ *$//s' "${OUTFILE}.${testname}.stdout"
|
||||
perl -pi -e 's/ *$//s' "${OUTFILE}.${testname}.stderr"
|
||||
sed -i -e 's/ *$//' "${OUTFILE}.${testname}.stdout"
|
||||
sed -i -e 's/ *$//' "${OUTFILE}.${testname}.stderr"
|
||||
|
||||
diff -u "${ORIGFILE}.${testname}.stdout" "${OUTFILE}.${testname}.stdout" || diff_failure
|
||||
diff -u "${ORIGFILE}.${testname}.stderr" "${OUTFILE}.${testname}.stderr" || diff_failure
|
||||
|
||||
Reference in New Issue
Block a user