Tests: Add log-file option to WPT runner script
Always dropping the log file in /tmp isn't the greatest DX for debugging failures
This commit is contained in:
parent
d334b2b57f
commit
d057d24d72
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ancient-history/commit/d057d24d72
1 changed files with 6 additions and 3 deletions
|
@ -15,6 +15,8 @@ fi
|
|||
which WebDriver)}"
|
||||
update_expectations_metadata=false
|
||||
remove_wpt_repository=false
|
||||
# Generate name for file with wpt run log
|
||||
wpt_run_log_filename="$(mktemp)"
|
||||
|
||||
for arg in "$@"; do
|
||||
case $arg in
|
||||
|
@ -30,6 +32,10 @@ for arg in "$@"; do
|
|||
remove_wpt_repository=true
|
||||
shift
|
||||
;;
|
||||
--log-file=*)
|
||||
wpt_run_log_filename="$(realpath "${arg#*=}")"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument ${arg}"
|
||||
exit 1
|
||||
|
@ -66,9 +72,6 @@ fi
|
|||
# Extract metadata.txt into directory with expectation files expected by WPT runner
|
||||
python3 ./concat-extract-metadata.py --extract metadata.txt metadata
|
||||
|
||||
# Generate name for file with wpt run log
|
||||
wpt_run_log_filename="$(mktemp).txt"
|
||||
|
||||
# Run tests.
|
||||
python3 ./wpt/wpt run ladybird \
|
||||
--webdriver-binary "${WEBDRIVER_BINARY}" \
|
||||
|
|
Loading…
Add table
Reference in a new issue