mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
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.
This commit is contained in:
parent
458ccbf2b3
commit
f7b3300384
@ -193,10 +193,11 @@ case $testhost in
|
|||||||
*) sh ./delete_old_cluster.sh ;;
|
*) sh ./delete_old_cluster.sh ;;
|
||||||
esac
|
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
|
echo PASSED
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
echo "Files $temp_root/dump1.sql and $temp_root/dump2.sql differ"
|
||||||
echo "dumps were not identical"
|
echo "dumps were not identical"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user