Skip to content

Commit a44611d

Browse files
committed
tests: hide output
1 parent a17b649 commit a44611d

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

test/automation/src/playwrightDriver.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,18 @@ export async function launch(userDataDir: string, _workspacePath: string, codeSe
116116
serverLocation = join(codeServerPath, `server.${process.platform === 'win32' ? 'cmd' : 'sh'}`);
117117
args.push(`--logsPath=${logsPath}`);
118118

119-
console.log(`Starting built server from '${serverLocation}'`);
120-
console.log(`Storing log files into '${logsPath}'`);
119+
if (verbose) {
120+
console.log(`Starting built server from '${serverLocation}'`);
121+
console.log(`Storing log files into '${logsPath}'`);
122+
}
121123
} else {
122124
serverLocation = join(root, `resources/server/web.${process.platform === 'win32' ? 'bat' : 'sh'}`);
123125
args.push('--logsPath', logsPath);
124126

125-
console.log(`Starting server out of sources from '${serverLocation}'`);
126-
console.log(`Storing log files into '${logsPath}'`);
127+
if (verbose) {
128+
console.log(`Starting server out of sources from '${serverLocation}'`);
129+
console.log(`Storing log files into '${logsPath}'`);
130+
}
127131
}
128132

129133
server = spawn(

test/integration/browser/src/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,19 @@ async function launchServer(browserType: BrowserType): Promise<{ endpoint: url.U
102102
serverLocation = path.join(process.env.VSCODE_REMOTE_SERVER_PATH, `server.${process.platform === 'win32' ? 'cmd' : 'sh'}`);
103103
serverArgs.push(`--logsPath=${logsPath}`);
104104

105-
console.log(`Starting built server from '${serverLocation}'`);
106-
console.log(`Storing log files into '${logsPath}'`);
105+
if (optimist.argv.debug) {
106+
console.log(`Starting built server from '${serverLocation}'`);
107+
console.log(`Storing log files into '${logsPath}'`);
108+
}
107109
} else {
108110
serverLocation = path.join(root, `resources/server/web.${process.platform === 'win32' ? 'bat' : 'sh'}`);
109111
serverArgs.push('--logsPath', logsPath);
110112
process.env.VSCODE_DEV = '1';
111113

112-
console.log(`Starting server out of sources from '${serverLocation}'`);
113-
console.log(`Storing log files into '${logsPath}'`);
114+
if (optimist.argv.debug) {
115+
console.log(`Starting server out of sources from '${serverLocation}'`);
116+
console.log(`Storing log files into '${logsPath}'`);
117+
}
114118
}
115119

116120
const stdio: StdioOptions = optimist.argv.debug ? 'pipe' : ['ignore', 'pipe', 'ignore'];

0 commit comments

Comments
 (0)