Skip to content

Commit 0715837

Browse files
committed
In multithreaded dashboard mode, print path on first thread
1 parent 90ce85a commit 0715837

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,16 @@ def pytest_collection_finish(session):
16101610
colorama.init(autoreset=True)
16111611
c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
16121612
cr = colorama.Style.RESET_ALL
1613-
print("Dashboard: %s%s%s\n%s" % (c1, dash_path, cr, stars))
1613+
if sb_config._multithreaded:
1614+
if (
1615+
hasattr(session.config, "workerinput")
1616+
and session.config.workerinput["workerid"] == "gw0"
1617+
):
1618+
sys.stderr.write(
1619+
"\nDashboard: %s%s%s\n%s\n" % (c1, dash_path, cr, stars)
1620+
)
1621+
else:
1622+
print("Dashboard: %s%s%s\n%s" % (c1, dash_path, cr, stars))
16141623

16151624

16161625
def pytest_runtest_setup(item):

0 commit comments

Comments
 (0)