Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d4051bf

Browse files
committed
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.
1 parent 49008d6 commit d4051bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pg_upgrade/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ case $testhost in
217217
*) sh ./delete_old_cluster.sh ;;
218218
esac
219219

220-
if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
220+
if diff "$temp_root"/dump1.sql "$temp_root"/dump2.sql >/dev/null; then
221221
echo PASSED
222222
exit 0
223223
else
224+
echo "Files $temp_root/dump1.sql and $temp_root/dump2.sql differ"
224225
echo "dumps were not identical"
225226
exit 1
226227
fi

0 commit comments

Comments
 (0)