* Execute a short-lived command.
(args: string[])
| 206 | * Execute a short-lived command. |
| 207 | */ |
| 208 | async run(args: string[]): Promise<void> { |
| 209 | args = await this.argsWithDefaults(args) |
| 210 | this.logger.debug("executing `node " + args.join(" ") + "`") |
| 211 | await util.promisify(cp.exec)("node " + args.join(" "), { |
| 212 | cwd: path.join(__dirname, "../../.."), |
| 213 | env: { |
| 214 | ...process.env, |
| 215 | ...this.env, |
| 216 | // Prevent code-server from using the existing instance when running |
| 217 | // the e2e tests from an integrated terminal. |
| 218 | VSCODE_IPC_HOOK_CLI: "", |
| 219 | }, |
| 220 | }) |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Combine arguments with defaults. |
no test coverage detected