[Libguestfs] [PATCH supermin] tests: fix test-binaries-exist.sh with bash 4.4

Pino Toscano ptoscano at redhat.com
Wed Dec 14 13:41:18 UTC 2016


bash 4.4 installs the (binary) examples of builtins by default: among
them, there is one called 'sync', which segfaults when called
standalone.  Since this test actually looks for the 'sync' utility from
coreutils, filter out the bash-specific paths from the search results.
---
 tests/test-binaries-exist.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-binaries-exist.sh b/tests/test-binaries-exist.sh
index c40ce93..71a0c8c 100755
--- a/tests/test-binaries-exist.sh
+++ b/tests/test-binaries-exist.sh
@@ -56,7 +56,7 @@ if [ "$(find $d2 -name sync -perm -0555 | wc -l)" -lt 1 ]; then
 fi
 
 # These binaries should be runnable (since they are the same as the host).
-`find $d2 -name sync | head`
+`find $d2 -name sync ! -path '*/bash/*' | head`
 
 # Need to chmod $d2 since rm -r can't remove unwritable directories.
 chmod -R +w $d2 ||:
-- 
2.7.4




More information about the Libguestfs mailing list