|
|
958e1b |
From 40bbc03370fbd830e8010764318e01c3e6af631f Mon Sep 17 00:00:00 2001
|
|
|
958e1b |
Message-Id: <40bbc03370fbd830e8010764318e01c3e6af631f.1418766606.git.jen@redhat.com>
|
|
|
958e1b |
In-Reply-To: <6f81b4847eb68ebdf54a8f1a771e19d112d74152.1418766606.git.jen@redhat.com>
|
|
|
958e1b |
References: <6f81b4847eb68ebdf54a8f1a771e19d112d74152.1418766606.git.jen@redhat.com>
|
|
|
958e1b |
From: Fam Zheng <famz@redhat.com>
|
|
|
958e1b |
Date: Thu, 4 Dec 2014 00:04:58 -0600
|
|
|
958e1b |
Subject: [CHANGE 04/31] qemu-iotests: Introduce _unsupported_imgopts
|
|
|
958e1b |
To: rhvirt-patches@redhat.com,
|
|
|
958e1b |
jen@redhat.com
|
|
|
958e1b |
|
|
|
958e1b |
RH-Author: Fam Zheng <famz@redhat.com>
|
|
|
958e1b |
Message-id: <1417651524-18041-5-git-send-email-famz@redhat.com>
|
|
|
958e1b |
Patchwork-id: 62677
|
|
|
958e1b |
O-Subject: [RHEL-7.1 qemu-kvm PATCH v5 04/30] qemu-iotests: Introduce _unsupported_imgopts
|
|
|
958e1b |
Bugzilla: 1002493
|
|
|
958e1b |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
958e1b |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
|
958e1b |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
958e1b |
|
|
|
958e1b |
Introduce _unsupported_imgopts that causes _notrun for specific image
|
|
|
958e1b |
options.
|
|
|
958e1b |
|
|
|
958e1b |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
958e1b |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
958e1b |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
958e1b |
(cherry picked from commit 2c77f52e39ff2ba071e3b549ad7a3ebea0758edd)
|
|
|
958e1b |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
958e1b |
Signed-off-by: Jeff E. Nelson <jen@redhat.com>
|
|
|
958e1b |
---
|
|
|
958e1b |
tests/qemu-iotests/common.rc | 11 +++++++++++
|
|
|
958e1b |
1 file changed, 11 insertions(+)
|
|
|
958e1b |
|
|
|
958e1b |
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
|
|
|
958e1b |
index 65c5bc1..9c6e94b 100644
|
|
|
958e1b |
--- a/tests/qemu-iotests/common.rc
|
|
|
958e1b |
+++ b/tests/qemu-iotests/common.rc
|
|
|
958e1b |
@@ -404,6 +404,17 @@ _unsupported_qemu_io_options()
|
|
|
958e1b |
done
|
|
|
958e1b |
}
|
|
|
958e1b |
|
|
|
958e1b |
+_unsupported_imgopts()
|
|
|
958e1b |
+{
|
|
|
958e1b |
+ for bad_opt
|
|
|
958e1b |
+ do
|
|
|
958e1b |
+ if echo "$IMGOPTS" | grep -q 2>/dev/null "$bad_opt"
|
|
|
958e1b |
+ then
|
|
|
958e1b |
+ _notrun "not suitable for image option: $bad_opt"
|
|
|
958e1b |
+ fi
|
|
|
958e1b |
+ done
|
|
|
958e1b |
+}
|
|
|
958e1b |
+
|
|
|
958e1b |
# this test requires that a specified command (executable) exists
|
|
|
958e1b |
#
|
|
|
958e1b |
_require_command()
|
|
|
958e1b |
--
|
|
|
958e1b |
2.1.0
|
|
|
958e1b |
|