aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-07-08 20:44:21 -0400
committerNoah Misch <noah@leadboat.com>2015-07-08 20:44:25 -0400
commit8ed6e70ace8e8d2f0747c16a796a21147ffaf404 (patch)
tree7d92b2bb7f808a239741e819c7fcbc5916850e9a
parentfb990ce6c7d99d329843e5d70d4cdaf8d0825b38 (diff)
downloadpostgresql-8ed6e70ace8e8d2f0747c16a796a21147ffaf404.tar.gz
postgresql-8ed6e70ace8e8d2f0747c16a796a21147ffaf404.zip
Replace use of "diff -q".
POSIX does not specify the -q option, and many implementations do not offer it. Don't bother changing the MSVC build system, because having non-GNU diff on Windows is vanishingly unlikely. Back-patch to 9.2, where this invocation was introduced.
-rw-r--r--src/bin/pg_upgrade/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh
index 07002f6a165..f4e5d9ae6e9 100644
--- a/src/bin/pg_upgrade/test.sh
+++ b/src/bin/pg_upgrade/test.sh
@@ -216,10 +216,11 @@ case $testhost in
*) sh ./delete_old_cluster.sh ;;
esac
-if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
+if diff "$temp_root"/dump1.sql "$temp_root"/dump2.sql >/dev/null; then
echo PASSED
exit 0
else
+ echo "Files $temp_root/dump1.sql and $temp_root/dump2.sql differ"
echo "dumps were not identical"
exit 1
fi