Update run-cts to allow skipping VSCode launch information.
The VSCode launch.json is emitted for every process that spins up. This
isn't useful for folks not using VSCode. This CL adds a
`--skip-vs-code-info` which suppresses the emission of the launch.json
data.
The execution command and current working directory are still emitted.
Change-Id: I02a3247a2f481913525ac546ffc6972fb3b0a253
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/178040
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/tools/src/cmd/run-cts/node/cmdline.go b/tools/src/cmd/run-cts/node/cmdline.go
index e4cd029..990a909 100644
--- a/tools/src/cmd/run-cts/node/cmdline.go
+++ b/tools/src/cmd/run-cts/node/cmdline.go
@@ -122,7 +122,7 @@
cmd.Stderr = &buf
if c.flags.Verbose {
- PrintCommand(cmd)
+ PrintCommand(cmd, c.flags.skipVSCodeInfo)
}
start := time.Now()