File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal
test/framework/src/main/java/org/elasticsearch/entitlement/bootstrap Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public void execute(Task t) {
182182 FileCollection mainRuntime = mainSourceSet .getRuntimeClasspath ();
183183 FileCollection testRuntime = testSourceSet .getRuntimeClasspath ();
184184 FileCollection testOnlyFiles = testRuntime .minus (mainRuntime );
185- nonInputProperties . systemProperty ("es.entitlement.testOnlyPath" , testOnlyFiles :: getAsPath );
185+ test . environment ("es.entitlement.testOnlyPath" , testOnlyFiles . getAsPath () );
186186 }
187187
188188 test .systemProperties (getProviderFactory ().systemPropertiesPrefixedBy ("tests." ).get ());
Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ private static TestPolicyManager createPolicyManager(PathLookup pathLookup) thro
122122
123123 FilesEntitlementsValidation .validate (pluginPolicies , pathLookup );
124124
125- String testOnlyPathProperty = System .getProperty ("es.entitlement.testOnlyPath" );
125+ String testOnlyPathString = System .getenv ("es.entitlement.testOnlyPath" );
126126 Set <String > testOnlyClassPath ;
127- if (testOnlyPathProperty == null ) {
127+ if (testOnlyPathString == null ) {
128128 testOnlyClassPath = Set .of ();
129129 } else {
130- testOnlyClassPath = Arrays .stream (testOnlyPathProperty .split (":" )).collect (toCollection (TreeSet ::new ));
130+ testOnlyClassPath = Arrays .stream (testOnlyPathString .split (":" )).collect (toCollection (TreeSet ::new ));
131131 }
132132
133133 return new TestPolicyManager (
You can’t perform that action at this time.
0 commit comments