[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v3 24/38] qemu-iotests: Add supported os parameter fo
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL v3 24/38] qemu-iotests: Add supported os parameter for python tests |
Date: |
Tue, 13 Jan 2015 13:48:02 +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 v3 15/38] qmp: Add command 'blockdev-backup', (continued)
- [Qemu-devel] [PULL v3 15/38] qmp: Add command 'blockdev-backup', Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 16/38] block: Add blockdev-backup to transaction, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 17/38] qemu-iotests: Test blockdev-backup in 055, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 18/38] iotests: Filter out "I/O thread spun..." warning, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 21/38] .gitignore: Ignore generated "common.env", Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 19/38] migration/block: fix pending() return value, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 22/38] qemu-iotests: Replace "/bin/true" with "true", Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 23/38] qemu-iotests: Add "_supported_os Linux" to 058, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 20/38] libqos: Convert malloc-pc allocator to a generic allocator, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 25/38] coroutine-ucontext: use __thread, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 24/38] qemu-iotests: Add supported os parameter for python tests,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL v3 26/38] qemu-thread: add per-thread atexit functions, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 29/38] coroutine: rewrite pool to avoid mutex, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 30/38] coroutine: drop qemu_coroutine_adjust_pool_size, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 27/38] test-coroutine: avoid overflow on 32-bit systems, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 28/38] QSLIST: add lock-free operations, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 32/38] block: limited request size in write zeroes unsupported path, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 33/38] block: Split BLOCK_OP_TYPE_COMMIT to BLOCK_OP_TYPE_COMMIT_{SOURCE, TARGET}, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 31/38] coroutine: try harder not to delete coroutines, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 34/38] ide: Implement VPD response for ATAPI, Stefan Hajnoczi, 2015/01/13
- [Qemu-devel] [PULL v3 35/38] nvme: Fix get/set number of queues feature, Stefan Hajnoczi, 2015/01/13