@@ -14,38 +14,32 @@ const initialStatusRegex = /Running (\d+) tests/;
1414
1515async function main ( ) {
1616 const [ runfilesDir , targetName , testArgs ] = process . argv . slice ( 2 ) ;
17- const maxShards = 1 ;
18-
1917 const testEntrypoint = path . resolve ( runfilesDir , '../' , targetName ) ;
2018 const testWorkingDir = path . resolve ( runfilesDir , '_main' ) ;
2119 const tasks = [ ] ;
2220 const progress = { } ;
2321
24- for ( let i = 0 ; i < maxShards ; i ++ ) {
25- tasks . push (
26- spawnTest (
27- 'bash' ,
28- [ testEntrypoint , ...testArgs . split ( ' ' ) . filter ( ( arg ) => arg !== '' ) ] ,
29- {
30- cwd : testWorkingDir ,
31- env : {
32- // Try to construct a pretty hermetic environment, as within Bazel.
33- PATH : process . env . PATH ,
34- TEST_TOTAL_SHARDS : maxShards ,
35- TEST_SHARD_INDEX : i ,
36- E2E_SHARD_TOTAL : process . env . E2E_SHARD_TOTAL ,
37- E2E_SHARD_INDEX : process . env . E2E_SHARD_INDEX ,
38- FORCE_COLOR : '3' ,
39- // Needed by `rules_js`
40- BAZEL_BINDIR : '.' ,
41- // Needed to run the E2E in a different temp path.
42- E2E_TEMP : process . env . E2E_TEMP ,
43- } ,
22+ tasks . push (
23+ spawnTest (
24+ 'bash' ,
25+ [ testEntrypoint , ...testArgs . split ( ' ' ) . filter ( ( arg ) => arg !== '' ) ] ,
26+ {
27+ cwd : testWorkingDir ,
28+ env : {
29+ // Try to construct a pretty hermetic environment, as within Bazel.
30+ PATH : process . env . PATH ,
31+ E2E_SHARD_TOTAL : process . env . E2E_SHARD_TOTAL ,
32+ E2E_SHARD_INDEX : process . env . E2E_SHARD_INDEX ,
33+ FORCE_COLOR : '3' ,
34+ // Needed by `rules_js`
35+ BAZEL_BINDIR : '.' ,
36+ // Needed to run the E2E in a different temp path.
37+ E2E_TEMP : process . env . E2E_TEMP ,
4438 } ,
45- ( s ) => ( progress [ i ] = s ) ,
46- ) ,
47- ) ;
48- }
39+ } ,
40+ ( s ) => ( progress [ 0 ] = s ) ,
41+ ) ,
42+ ) ;
4943
5044 const printUpdate = ( ) => {
5145 console . error ( `----` ) ;
0 commit comments