(cherry picked from commit a13a46a2da
)
This commit is contained in:
parent
378c360ba8
commit
0618b024ba
|
@ -167,7 +167,7 @@ public class RestTestBasePlugin implements Plugin<Project> {
|
||||||
nonInputSystemProperties.systemProperty(TESTS_FEATURES_METADATA_PATH, () -> featureMetadataConfig.getAsPath());
|
nonInputSystemProperties.systemProperty(TESTS_FEATURES_METADATA_PATH, () -> featureMetadataConfig.getAsPath());
|
||||||
|
|
||||||
// Enable parallel execution for these tests since each test gets its own cluster
|
// Enable parallel execution for these tests since each test gets its own cluster
|
||||||
task.setMaxParallelForks(task.getProject().getGradle().getStartParameter().getMaxWorkerCount() / 2);
|
task.setMaxParallelForks(Math.max(1, task.getProject().getGradle().getStartParameter().getMaxWorkerCount() / 2));
|
||||||
nonInputSystemProperties.systemProperty(TESTS_MAX_PARALLEL_FORKS_SYSPROP, () -> String.valueOf(task.getMaxParallelForks()));
|
nonInputSystemProperties.systemProperty(TESTS_MAX_PARALLEL_FORKS_SYSPROP, () -> String.valueOf(task.getMaxParallelForks()));
|
||||||
|
|
||||||
// Disable test failure reporting since this stuff is now captured in build scans
|
// Disable test failure reporting since this stuff is now captured in build scans
|
||||||
|
|
Loading…
Reference in New Issue