1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-26 13:44:19 +03:00

selftest/selftesthelpers: Share environment handling for extra smbtorture options.

This commit is contained in:
Jelmer Vernooij
2012-10-26 13:12:54 -08:00
parent 6bcb25673b
commit fcb7926ce5
3 changed files with 24 additions and 14 deletions

View File

@@ -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