mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 23:48:20 +00:00
Bug: https://bugs.gentoo.org/546768 Bug: https://bugs.gentoo.org/546770 Signed-off-by: Sam James <sam@gentoo.org>
10 lines
314 B
Diff
10 lines
314 B
Diff
--- a/tests/uniq.sh
|
|
+++ b/tests/uniq.sh
|
|
@@ -2,6 +2,6 @@
|
|
|
|
set -e
|
|
echo "HAL 9000" | $@ -o tmp/uniq-%n -n 100 -p od -m num
|
|
-md5cmd=$(test -x "$(which md5)" && echo "md5 -r" || echo "md5sum")
|
|
+md5cmd=md5sum
|
|
test 0 = $($md5cmd tmp/uniq-* | sed -e 's/ .*//' | sort | uniq -c | grep -v " 1 " | wc -l)
|
|
rm tmp/uniq-*
|