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:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user