File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -618,9 +618,12 @@ export async function testRun() {
618
618
619
619
// adjust the launch arguments and env vars depending on the environment
620
620
// (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
+ } ;
622
625
const launchArgs = [ ] ;
623
- if ( ! ( IS_CI && IS_MAC ) ) {
626
+ if ( IS_CI && IS_MAC ) {
624
627
extensionTestsEnv = {
625
628
ELECTRON_ENABLE_LOGGING : "true" ,
626
629
ELECTRON_ENABLE_STACK_DUMPING : "true" ,
@@ -629,6 +632,7 @@ export async function testRun() {
629
632
VSCODE_CLI : "1" ,
630
633
ELECTRON_RUN_AS_NODE : "1" ,
631
634
} ;
635
+ } else {
632
636
launchArgs . push (
633
637
"--no-sandbox" ,
634
638
"--profile-temp" ,
@@ -640,11 +644,6 @@ export async function testRun() {
640
644
"--disable-workspace-trust" ,
641
645
"--disable-extensions" ,
642
646
) ;
643
- } else {
644
- extensionTestsEnv = {
645
- // used by https://mochajs.org/api/mocha#fgrep for running isolated tests
646
- FGREP : testFilter ,
647
- } ;
648
647
}
649
648
console . log ( `Running tests for ${ process . platform } -${ process . arch } ` ) ;
650
649
console . log ( `Launch args: ${ launchArgs . join ( " " ) } ` ) ;
You can’t perform that action at this time.
0 commit comments