qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Markus Armbruster <armbru@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH v3 7/7] qemu-iotests: Add supported os parameter for python tests
Date: Wed, 31 Dec 2014 12:30:11 +0800	[thread overview]
Message-ID: <1420000211-6327-8-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1420000211-6327-1-git-send-email-famz@redhat.com>

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 <famz@redhat.com>
---
 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

      parent reply	other threads:[~2014-12-31  4:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-31  4:30 [Qemu-devel] [PATCH v3 0/7] tests: Add check-block to "make check" Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 1/7] .gitignore: Ignore generated "common.env" Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 2/7] qemu-iotests: Remove 091 from quick group Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 3/7] qemu-iotests: Replace "/bin/true" with "true" Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 4/7] qemu-iotests: Add "_supported_os Linux" to 058 Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 5/7] qemu-iotests: Speed up make check-block Fam Zheng
2014-12-31  4:30 ` [Qemu-devel] [PATCH v3 6/7] tests/Makefile: Add check-block to make check on Linux Fam Zheng
2014-12-31  8:53   ` Peter Maydell
2014-12-31  4:30 ` Fam Zheng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1420000211-6327-8-git-send-email-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=armbru@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).