[Libguestfs] [PATCH nbdkit v2 1/3] tests/test-ssh.sh: Skip test if test disk is not created.

Richard W.M. Jones rjones at redhat.com
Fri Jun 19 20:24:38 UTC 2020


This test failed if mke2fs was too old to have the -d option (or
mke2fs was not installed at all), which means that the test disk was
not created.  Skip the test instead of failing in this case.
---
 tests/test-ssh.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-ssh.sh b/tests/test-ssh.sh
index 8f3b9e5b..efc06c07 100755
--- a/tests/test-ssh.sh
+++ b/tests/test-ssh.sh
@@ -34,6 +34,7 @@ source ./functions.sh
 set -e
 set -x
 
+requires test -f disk
 requires sshd -t -f ssh/sshd_config
 requires qemu-img --version
 requires cut --version
-- 
2.25.0




More information about the Libguestfs mailing list