Skip to content

Commit

Permalink
Add a manual delay when launching servodriver to allow attaching a de…
Browse files Browse the repository at this point in the history
…bugger.

Signed-off-by: Josh Matthews <[email protected]>
  • Loading branch information
jdm authored and servo-wpt-sync committed Jan 14, 2025
1 parent c44b8d0 commit 7b80c65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/wptrunner/wptrunner/browsers/servodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def env_extras(**kwargs):

def env_options():
return {"server_host": "127.0.0.1",
"supports_debugger": False}
"supports_debugger": True}


def update_properties():
Expand All @@ -88,6 +88,9 @@ def __init__(self, logger, binary, debug_info=None, webdriver_host="127.0.0.1",
env["HOST_FILE"] = hosts_path
env["RUST_BACKTRACE"] = "1"

if debug_info:
env["DELAY_AFTER_ACCEPT"] = env.get("DELAY_SECS", "15")

args = [
"--hard-fail",
"--webdriver=%s" % port,
Expand Down

0 comments on commit 7b80c65

Please sign in to comment.