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