commit | 9a052177d0fd63efa863050d74c83350997984e8 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Jul 19 14:47:39 2021 +0000 |
committer | Tint LUCI CQ <tint-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 19 14:47:39 2021 +0000 |
tree | a2522e08ac60e4816220679aedc70dd7e7045361 | |
parent | 73f0dde6d0d53b09325cf13b4d0f1cce0fa3eaaf [diff] |
tools: Fix test-runner --filter flag on windows Likely got broken with https://dawn-review.googlesource.com/c/tint/+/56776 Change-Id: Ie9db21e11084435a47f6fa0bfc809a590a353685 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58396 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
diff --git a/tools/src/cmd/test-runner/main.go b/tools/src/cmd/test-runner/main.go index 6dbcd12..81bae47 100644 --- a/tools/src/cmd/test-runner/main.go +++ b/tools/src/cmd/test-runner/main.go
@@ -116,8 +116,7 @@ // Split the --filter flag up by ',', trimming any whitespace at the start and end globIncludes := strings.Split(filter, ",") for i, s := range globIncludes { - // Escape backslashes for the glob config - s = strings.ReplaceAll(s, `\`, `\\`) + s = filepath.ToSlash(s) // Replace '\' with '/' globIncludes[i] = `"` + strings.TrimSpace(s) + `"` }