File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,14 @@ import { promisify } from "util"
6
6
*
7
7
* A helper function for integration tests to run code-server commands.
8
8
*/
9
- export async function runCodeServerCommand ( argv : string [ ] ) : Promise < { stdout : string ; stderr : string } > {
9
+ export async function runCodeServerCommand (
10
+ argv : string [ ] ,
11
+ env ?: NodeJS . ProcessEnv ,
12
+ ) : Promise < { stdout : string ; stderr : string } > {
10
13
const CODE_SERVER_COMMAND = process . env . CODE_SERVER_PATH || path . resolve ( "../../release-standalone/bin/code-server" )
11
- const { stdout, stderr } = await promisify ( exec ) ( `${ CODE_SERVER_COMMAND } ${ argv . join ( " " ) } ` )
14
+ const { stdout, stderr } = await promisify ( exec ) ( `${ CODE_SERVER_COMMAND } ${ argv . join ( " " ) } ` , {
15
+ env : { ...process . env , ...env } ,
16
+ } )
12
17
13
18
return { stdout, stderr }
14
19
}
You can’t perform that action at this time.
0 commit comments