From bc917a0efc03b8c28966c9ab474f525752ebe440 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 23 Jul 2012 18:43:38 +0100 Subject: tests/protocol: Skip these tests if default attach-method is not 'appliance'. --- tests/protocol/test-qemudie-killsub.sh | 5 +++++ tests/protocol/test-qemudie-midcommand.sh | 5 +++++ tests/protocol/test-qemudie-synch.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tests/protocol/test-qemudie-killsub.sh b/tests/protocol/test-qemudie-killsub.sh index 093e73de..70be4e1d 100755 --- a/tests/protocol/test-qemudie-killsub.sh +++ b/tests/protocol/test-qemudie-killsub.sh @@ -20,6 +20,11 @@ set -e +if [ "$(../../fish/guestfish get-attach-method)" != "appliance" ]; then + echo "$0: test skipped because default attach-method is not 'appliance'" + exit 77 +fi + rm -f test1.img ../../fish/guestfish -N disk <<'EOF' diff --git a/tests/protocol/test-qemudie-midcommand.sh b/tests/protocol/test-qemudie-midcommand.sh index 73c3b8e6..1e1fd99a 100755 --- a/tests/protocol/test-qemudie-midcommand.sh +++ b/tests/protocol/test-qemudie-midcommand.sh @@ -20,6 +20,11 @@ set -e +if [ "$(../../fish/guestfish get-attach-method)" != "appliance" ]; then + echo "$0: test skipped because default attach-method is not 'appliance'" + exit 77 +fi + rm -f test.pid test1.img ../../fish/guestfish -N disk <<'EOF' diff --git a/tests/protocol/test-qemudie-synch.sh b/tests/protocol/test-qemudie-synch.sh index fb4e25f3..398756e1 100755 --- a/tests/protocol/test-qemudie-synch.sh +++ b/tests/protocol/test-qemudie-synch.sh @@ -20,6 +20,11 @@ set -e +if [ "$(../../fish/guestfish get-attach-method)" != "appliance" ]; then + echo "$0: test skipped because default attach-method is not 'appliance'" + exit 77 +fi + rm -f test.pid test1.img ../../fish/guestfish -N disk <<'EOF' -- cgit