Make updates to the "_multithreaded" variable

This commit is contained in:
Michael Mintz 2021-04-16 02:45:52 -04:00
parent e5833f4afb
commit e1087d7021
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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