Skip to content

Commit

Permalink
Meta: Add a --debug-process option to WPT.sh
Browse files Browse the repository at this point in the history
This passes the `--debug-process` option to WebDriver.
  • Loading branch information
tcl3 committed Dec 12, 2024
1 parent f621398 commit 7cb560b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Meta/WPT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,16 @@ set_logging_flags()

headless=1
ARG=$1
while [[ "$ARG" =~ ^(--show-window|(--log(-(raw|unittest|xunit|html|mach|tbpl|grouped|chromium|wptreport|wptscreenshot))?))$ ]]; do
while [[ "$ARG" =~ ^(--show-window|--debug-process|(--log(-(raw|unittest|xunit|html|mach|tbpl|grouped|chromium|wptreport|wptscreenshot))?))$ ]]; do
case "$ARG" in
--show-window)
headless=0
;;
--debug-process)
process_name="${2}"
shift
WPT_ARGS+=( "--webdriver-arg=--debug-process=${process_name}" )
;;
--log)
set_logging_flags "--log-raw" "${2}"
shift
Expand Down

0 comments on commit 7cb560b

Please sign in to comment.