File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,23 @@ import { DownloadPlatform } from '@vscode/test-electron/out/download';
1818import { arch } from 'os' ;
1919
2020// Support for passing grep (specially for models or Copilot Coding Agent)
21- process . env . VSC_JUPYTER_CI_TEST_GREP =
22- process . argv
23- . filter ( ( arg ) => arg . startsWith ( '--grep' ) )
24- . map ( ( arg ) => arg . split ( '=' ) [ 1 ] )
25- . pop ( ) ||
26- process . env . VSC_JUPYTER_CI_TEST_GREP ||
27- '' ;
21+ // Local Copilot or Copilot Coding Agent can use `--grep=XYZ` or `--grep XYZ`
22+ if ( process . argv . some ( ( arg ) => arg . startsWith ( '--grep=' ) ) ) {
23+ process . env . VSC_JUPYTER_CI_TEST_GREP =
24+ process . argv
25+ . filter ( ( arg ) => arg . startsWith ( '--grep=' ) )
26+ . map ( ( arg ) => arg . split ( '=' ) [ 1 ] )
27+ . pop ( ) ||
28+ process . env . VSC_JUPYTER_CI_TEST_GREP ||
29+ '' ;
30+ } else if ( process . argv . some ( ( arg ) => arg === '--grep' ) ) {
31+ const indexOfGrep = process . argv . indexOf ( '--grep' ) ;
32+ if ( indexOfGrep !== - 1 && process . argv . length > indexOfGrep + 1 ) {
33+ process . env . VSC_JUPYTER_CI_TEST_GREP =
34+ process . argv [ indexOfGrep + 1 ] || process . env . VSC_JUPYTER_CI_TEST_GREP || '' ;
35+ }
36+ }
37+
2838process . env . IS_CI_SERVER_TEST_DEBUGGER = '' ;
2939process . env . VSC_JUPYTER_CI_TEST = '1' ;
3040const workspacePath = process . env . CODE_TESTS_WORKSPACE
You can’t perform that action at this time.
0 commit comments