Skip to content

Commit d5d7fcf

Browse files
committed
fix for non-darwin CI
1 parent ff670f0 commit d5d7fcf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Gulpfile.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,12 @@ export async function testRun() {
618618

619619
// adjust the launch arguments and env vars depending on the environment
620620
// (darwin CI needs to run in headless mode)
621-
let extensionTestsEnv = {};
621+
let extensionTestsEnv = {
622+
// used by https://mochajs.org/api/mocha#fgrep for running isolated tests
623+
FGREP: testFilter,
624+
};
622625
const launchArgs = [];
623-
if (!(IS_CI && IS_MAC)) {
626+
if (IS_CI && IS_MAC) {
624627
extensionTestsEnv = {
625628
ELECTRON_ENABLE_LOGGING: "true",
626629
ELECTRON_ENABLE_STACK_DUMPING: "true",
@@ -629,6 +632,7 @@ export async function testRun() {
629632
VSCODE_CLI: "1",
630633
ELECTRON_RUN_AS_NODE: "1",
631634
};
635+
} else {
632636
launchArgs.push(
633637
"--no-sandbox",
634638
"--profile-temp",
@@ -640,11 +644,6 @@ export async function testRun() {
640644
"--disable-workspace-trust",
641645
"--disable-extensions",
642646
);
643-
} else {
644-
extensionTestsEnv = {
645-
// used by https://mochajs.org/api/mocha#fgrep for running isolated tests
646-
FGREP: testFilter,
647-
};
648647
}
649648
console.log(`Running tests for ${process.platform}-${process.arch}`);
650649
console.log(`Launch args: ${launchArgs.join(" ")}`);

0 commit comments

Comments
 (0)