[Pkg-libvirt-commits] [libguestfs] 21/26: tests/luks: disable if luks is not available

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 2 13:37:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.25.39
in repository libguestfs.

commit 12bdd94f7e2916830bed109dd503910f96fa3f2b
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Fri Feb 28 13:14:33 2014 +0100

    tests/luks: disable if luks is not available
---
 tests/luks/test-luks-list.sh | 6 ++++++
 tests/luks/test-luks.sh      | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/tests/luks/test-luks-list.sh b/tests/luks/test-luks-list.sh
index 13e7655..bb8389c 100755
--- a/tests/luks/test-luks-list.sh
+++ b/tests/luks/test-luks-list.sh
@@ -25,6 +25,12 @@ set -e
     exit 77
 }
 
+# If luks is not available, bail.
+if ! ../../fish/guestfish -a /dev/null run : available luks; then
+    echo "$0: skipping test because luks is not available"
+    exit 77
+fi
+
 rm -f test-luks-list.img test-luks-list.out
 
 ../../fish/guestfish --keys-from-stdin > test-luks-list.out <<'EOF'
diff --git a/tests/luks/test-luks.sh b/tests/luks/test-luks.sh
index ceca810..5d8e8b2 100755
--- a/tests/luks/test-luks.sh
+++ b/tests/luks/test-luks.sh
@@ -25,6 +25,12 @@ set -e
     exit 77
 }
 
+# If luks is not available, bail.
+if ! ../../fish/guestfish -a /dev/null run : available luks; then
+    echo "$0: skipping test because luks is not available"
+    exit 77
+fi
+
 rm -f test-luks.img
 
 ../../fish/guestfish --keys-from-stdin <<EOF

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list