Skip to content

Commit 3ae871e

Browse files
clean test code
1 parent 6a39f4b commit 3ae871e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/test/runTest.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@ async function main() {
1515
// Passed to --extensionTestsPath
1616
const extensionTestsPath = path.resolve(__dirname, './unittest/index');
1717
const vscodeExecutablePath = await downloadAndUnzipVSCode('stable');
18-
console.log("vscodeExecutablePath: ", vscodeExecutablePath);
1918
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
20-
console.log("cliPath: ", cliPath);
21-
console.log("args: ", args);
2219

23-
if (getOSType() == "Windows") {
20+
// Use cp.spawn / cp.exec for custom setup
21+
if (getOSType() == 'Windows') {
2422
const exec = path.basename(cliPath);
25-
console.log("Base: ", exec);
26-
console.log("Base 2: ", path.dirname(cliPath));
27-
2823
cp.spawnSync(exec, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
2924
cwd: path.dirname(cliPath),
3025
encoding: 'utf-8',
3126
stdio: 'inherit',
3227
});
33-
3428
} else {
3529
cp.spawnSync(cliPath, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
3630
encoding: 'utf-8',

0 commit comments

Comments
 (0)