[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 7/7] qemu-iotests: Add supported os parameter for
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v4 7/7] qemu-iotests: Add supported os parameter for python tests |
Date: |
Sun, 4 Jan 2015 09:53:52 +0800 |
If I understand correctly, qemu-iotests never meant to be portable. We
only support Linux for all the shell cases, but didn't specify it for
python tests. Now add this and default all the python tests as Linux
only. If we cares enough later, we can override the parameter in
individual cases.
Signed-off-by: Fam Zheng <address@hidden>
---
tests/qemu-iotests/iotests.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index f57f154..87002e0 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -282,12 +282,15 @@ def notrun(reason):
print '%s not run: %s' % (seq, reason)
sys.exit(0)
-def main(supported_fmts=[]):
+def main(supported_fmts=[], supported_oses=['linux']):
'''Run tests'''
if supported_fmts and (imgfmt not in supported_fmts):
notrun('not suitable for this image format: %s' % imgfmt)
+ if sys.platform not in supported_oses:
+ notrun('not suitable for this OS: %s' % sys.platform)
+
# We need to filter out the time taken from the output so that qemu-iotest
# can reliably diff the results against master output.
import StringIO
--
1.9.3
- [Qemu-devel] [PATCH v4 0/7] tests: Add check-block to "make check", Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 2/7] qemu-iotests: Remove 091 from quick group, Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 3/7] qemu-iotests: Replace "/bin/true" with "true", Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 1/7] .gitignore: Ignore generated "common.env", Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 5/7] qemu-iotests: Speed up make check-block, Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 4/7] qemu-iotests: Add "_supported_os Linux" to 058, Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 6/7] tests/Makefile: Add check-block to make check on Linux, Fam Zheng, 2015/01/03
- [Qemu-devel] [PATCH v4 7/7] qemu-iotests: Add supported os parameter for python tests,
Fam Zheng <=
- Re: [Qemu-devel] [PATCH v4 0/7] tests: Add check-block to "make check", Stefan Hajnoczi, 2015/01/06