summaryrefslogtreecommitdiff
path: root/selftest/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-10-26 15:53:57 -0800
committerJelmer Vernooij <jelmer@samba.org>2012-10-27 05:16:19 -0800
commit67dd28f3605db4cbdc5feacc1121ec3d7dd075a6 (patch)
tree3dc878050bf9dac2827ddb7d5607f7ce86736fab /selftest/wscript
parent1190f385f72f68f22277c8b380f2d4c461c413a4 (diff)
downloadsamba-67dd28f3605db4cbdc5feacc1121ec3d7dd075a6.tar.gz
samba-67dd28f3605db4cbdc5feacc1121ec3d7dd075a6.tar.bz2
samba-67dd28f3605db4cbdc5feacc1121ec3d7dd075a6.zip
selftest: Add --random-order option.
Diffstat (limited to 'selftest/wscript')
-rw-r--r--selftest/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/wscript b/selftest/wscript
index 9ea2f6fdd4..a5b2e5358f 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -69,6 +69,8 @@ def set_options(opt):
gr.add_option('--socket-wrapper-keep-pcap',
help=("create a pcap file for all individual test"),
action="store_true", dest='SOCKET_WRAPPER_KEEP_PCAP', default=False)
+ gr.add_option('--random-order', dest='RANDOM_ORDER', default=False,
+ action="store_true", help="Run testsuites in random order")
def configure(conf):
conf.env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX
@@ -134,6 +136,8 @@ def cmd_testonly(opt):
env.OPTIONS += ' --socket-wrapper-pcap'
if Options.options.SOCKET_WRAPPER_KEEP_PCAP:
env.OPTIONS += ' --socket-wrapper-keep-pcap'
+ if Options.options.RANDOM_ORDER:
+ env.OPTIONS += ' --random-order'
if os.environ.get('RUN_FROM_BUILD_FARM') is not None:
env.FILTER_OPTIONS = '${FILTER_XFAIL} --strip-passed-output'
else: