summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-10-26 13:12:54 -0800
committerJelmer Vernooij <jelmer@samba.org>2012-10-27 05:16:18 -0800
commitfcb7926ce544a8d4b0e5aa6577fe21712b38bb53 (patch)
tree29dcedf492f0c540623bac99b9cc7a321d06be86 /selftest
parent6bcb25673bdc249f5a49ded912d90bc84b13809d (diff)
downloadsamba-fcb7926ce544a8d4b0e5aa6577fe21712b38bb53.tar.gz
samba-fcb7926ce544a8d4b0e5aa6577fe21712b38bb53.tar.bz2
samba-fcb7926ce544a8d4b0e5aa6577fe21712b38bb53.zip
selftest/selftesthelpers: Share environment handling for extra smbtorture options.
Diffstat (limited to 'selftest')
-rw-r--r--selftest/selftesthelpers.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py
index ae0a756823..66402903b7 100644
--- a/selftest/selftesthelpers.py
+++ b/selftest/selftesthelpers.py
@@ -198,3 +198,14 @@ def plansmbtorture4testsuite(name, env, options, modname=None):
def smbtorture4_testsuites(prefix):
return filter(lambda x: x.startswith(prefix), smbtorture4_testsuite_list)
+
+
+def get_env_torture_options():
+ ret = []
+ if not os.getenv("SELFTEST_VERBOSE"):
+ ret.append("--option=torture:progress=no")
+ if os.getenv("SELFTEST_QUICK"):
+ ret.append("--option=torture:quick=yes")
+ return ret
+
+