From 117ff3778a0f563c95add584e33ec07dafa094bb Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 15 Jul 2025 21:10:59 +0100 Subject: [PATCH] Meta: Ensure the correct log file path is used with `WPT.sh compare` Previously, using abolute paths with `WPT.sh compare` would fail, as directories were always assumed to be relative to the working directory. --- Meta/WPT.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/WPT.sh b/Meta/WPT.sh index b4233f51e84..8446520c0ce 100755 --- a/Meta/WPT.sh +++ b/Meta/WPT.sh @@ -680,7 +680,7 @@ if [[ "$CMD" =~ ^(update|clean|run|serve|compare|import|list-tests)$ ]]; then ;; compare) - INPUT_LOG_NAME="$(pwd -P)/$1" + INPUT_LOG_NAME="$(realpath "$1")" if [ ! -f "$INPUT_LOG_NAME" ]; then echo "Log file not found: \"${INPUT_LOG_NAME}\"" usage;