Make updates to the "_multithreaded" variable
This commit is contained in:
parent
e5833f4afb
commit
e1087d7021
|
@ -53,6 +53,7 @@ except (ImportError, ValueError):
|
|||
sb.use_auto_ext = False
|
||||
sb.no_sandbox = False
|
||||
sb.disable_gpu = False
|
||||
sb._multithreaded = False
|
||||
sb._reuse_session = False
|
||||
sb._crumbs = False
|
||||
sb.visual_baseline = False
|
||||
|
|
|
@ -754,9 +754,9 @@ def pytest_configure(config):
|
|||
sb_config._html_report_name = None # The name of the pytest html report
|
||||
|
||||
arg_join = " ".join(sys.argv)
|
||||
if ("-n" in sys.argv) or ("-n=" in arg_join):
|
||||
if ("-n" in sys.argv) or (" -n=" in arg_join) or ("-c" in sys.argv):
|
||||
sb_config._multithreaded = True
|
||||
if ("--html" in sys.argv or "--html=" in arg_join):
|
||||
if ("--html" in sys.argv or " --html=" in arg_join):
|
||||
sb_config._using_html_report = True
|
||||
sb_config._html_report_name = config.getoption("htmlpath")
|
||||
if sb_config.dashboard:
|
||||
|
|
|
@ -469,6 +469,7 @@ class SeleniumBrowser(Plugin):
|
|||
test.test.timeout_multiplier = self.options.timeout_multiplier
|
||||
test.test.use_grid = False
|
||||
test.test.dashboard = False
|
||||
test.test._multithreaded = False
|
||||
test.test._reuse_session = False
|
||||
if test.test.servername != "localhost":
|
||||
# Use Selenium Grid (Use --server="127.0.0.1" for localhost Grid)
|
||||
|
|
Loading…
Reference in New Issue