|
@@ -282,12 +282,15 @@ def notrun(reason):
|
|
print '%s not run: %s' % (seq, reason)
|
|
print '%s not run: %s' % (seq, reason)
|
|
sys.exit(0)
|
|
sys.exit(0)
|
|
|
|
|
|
-def main(supported_fmts=[]):
|
|
|
|
|
|
+def main(supported_fmts=[], supported_oses=['linux']):
|
|
'''Run tests'''
|
|
'''Run tests'''
|
|
|
|
|
|
if supported_fmts and (imgfmt not in supported_fmts):
|
|
if supported_fmts and (imgfmt not in supported_fmts):
|
|
notrun('not suitable for this image format: %s' % imgfmt)
|
|
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
|
|
# We need to filter out the time taken from the output so that qemu-iotest
|
|
# can reliably diff the results against master output.
|
|
# can reliably diff the results against master output.
|
|
import StringIO
|
|
import StringIO
|