Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Resolve workspace variables in test flags. Fixes #928
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 1, 2018
1 parent c0b06c8 commit 9014a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function getTestEnvVars(config: vscode.WorkspaceConfiguration): any {

export function getTestFlags(goConfig: vscode.WorkspaceConfiguration, args: any): string[] {
let testFlags: string[] = goConfig['testFlags'] ? goConfig['testFlags'] : goConfig['buildFlags'];
testFlags = [...testFlags]; // Use copy of the flags, dont pass the actual object from config
testFlags = testFlags.map(x => resolvePath(x)); // Use copy of the flags, dont pass the actual object from config
return (args && args.hasOwnProperty('flags') && Array.isArray(args['flags'])) ? args['flags'] : testFlags;
}

Expand Down

0 comments on commit 9014a8f

Please sign in to comment.