[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 12/26] qemu-iotests: Add supported os parameter for p
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 12/26] qemu-iotests: Add supported os parameter for python tests |
Date: |
Fri, 9 Jan 2015 10:16:52 +0000 |
From: Fam Zheng <address@hidden>
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>
Signed-off-by: Stefan Hajnoczi <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
--
2.1.0
- [Qemu-devel] [PULL 03/26] tests: Prepare virtio-blk-test for multi-arch implementation, (continued)
- [Qemu-devel] [PULL 03/26] tests: Prepare virtio-blk-test for multi-arch implementation, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 05/26] libqos: Add malloc generic, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 06/26] libqos: Add virtio MMIO support, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 04/26] libqos: Remove PCI assumptions in constants of virtio driver, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 09/26] qemu-iotests: Replace "/bin/true" with "true", Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 07/26] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 10/26] qemu-iotests: Add "_supported_os Linux" to 058, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 08/26] .gitignore: Ignore generated "common.env", Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 11/26] tests/Makefile: Add check-block to make check on Linux, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 13/26] coroutine-ucontext: use __thread, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 12/26] qemu-iotests: Add supported os parameter for python tests,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 14/26] qemu-thread: add per-thread atexit functions, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 16/26] QSLIST: add lock-free operations, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 15/26] test-coroutine: avoid overflow on 32-bit systems, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 17/26] coroutine: rewrite pool to avoid mutex, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 18/26] coroutine: drop qemu_coroutine_adjust_pool_size, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 19/26] coroutine: try harder not to delete coroutines, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 20/26] block: limited request size in write zeroes unsupported path, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 22/26] ide: Implement VPD response for ATAPI, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 21/26] block: Split BLOCK_OP_TYPE_COMMIT to BLOCK_OP_TYPE_COMMIT_{SOURCE, TARGET}, Stefan Hajnoczi, 2015/01/09
- [Qemu-devel] [PULL 23/26] nvme: Fix get/set number of queues feature, Stefan Hajnoczi, 2015/01/09