[Libguestfs] [PATCH] tests: check for at least one available driver

Pino Toscano ptoscano at redhat.com
Wed Aug 20 09:38:33 UTC 2014


Extend test-basic.sh to check that at least one driver is available, so
it's easier to check for missing bits that prevent supermin to work.
---
 tests/test-basic.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/test-basic.sh b/tests/test-basic.sh
index d91bbd9..fefc152 100755
--- a/tests/test-basic.sh
+++ b/tests/test-basic.sh
@@ -26,3 +26,7 @@ set -e
 
 # Check that listing drivers work
 ../src/supermin --list-drivers
+
+# Check at least one driver is detected
+echo
+../src/supermin --list-drivers | grep -v not-detected
-- 
1.9.3




More information about the Libguestfs mailing list