---
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
--
1.8.3.1