Skip to content

Commit ae1752e

Browse files
authored
Actually be able to run RWC tests in parallel (#18453)
1 parent 2a70bf5 commit ae1752e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/harness/runner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ if (taskConfigsFolder) {
216216

217217
for (let i = 0; i < workerCount; i++) {
218218
const config = workerConfigs[i];
219-
// use last worker to run unit tests
220-
config.runUnitTests = i === workerCount - 1;
219+
// use last worker to run unit tests if we're not just running a single specific runner
220+
config.runUnitTests = runners.length !== 1 && i === workerCount - 1;
221221
Harness.IO.writeFile(ts.combinePaths(taskConfigsFolder, `task-config${i}.json`), JSON.stringify(workerConfigs[i]));
222222
}
223223
}

src/harness/rwcRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class RWCRunner extends RunnerBase {
263263
*/
264264
public initializeTests(): void {
265265
// Read in and evaluate the test list
266-
const testList = this.enumerateTestFiles();
266+
const testList = this.tests && this.tests.length ? this.tests : this.enumerateTestFiles();
267267
for (let i = 0; i < testList.length; i++) {
268268
this.runTest(testList[i]);
269269
}

0 commit comments

Comments
 (0)