Merge pull request #3095 from kiike/pr-portable-runner.sh

Fix runner.sh compatibility with OpenBSD and FreeBSD
This commit is contained in:
mergify[bot] 2020-05-09 20:43:15 +00:00 committed by GitHub
commit c10b4e4b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ then
fi
# Check if we got the output we wanted
if ! cmp --silent "${file_stdout}" "${expected_output}"
if ! cmp -s "${file_stdout}" "${expected_output}"
then
echo "Expected text from ${expected_output}, but got:"
diff -u "${expected_output}" "${file_stdout}" || true