This is an automated email from the ASF dual-hosted git repository. stbischof pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/felix-dev.git
commit 3aef950b0e378c207466bb201e53ca969915085d Author: Arnoud Glimmerveen <[email protected]> AuthorDate: Tue May 13 08:01:37 2025 +0200 Added flag towards Pax Exam that ensures the Pax Exam test fails if there are unresolved bundles within the test runtime. This to avoid trying to run in a test in an inconsistent/incomplete environment (as some of the bundles were unresolved due to an incompatible version being used). --- .../test/java/org/apache/felix/scr/integration/ComponentTestBase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java b/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java index 7921e1b885..81cb0e804d 100644 --- a/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java +++ b/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java @@ -18,6 +18,7 @@ */ package org.apache.felix.scr.integration; +import static org.ops4j.pax.exam.Constants.EXAM_FAIL_ON_UNRESOLVED_KEY; import static org.ops4j.pax.exam.CoreOptions.frameworkProperty; import static org.ops4j.pax.exam.CoreOptions.junitBundles; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; @@ -199,7 +200,8 @@ public abstract class ComponentTestBase systemProperty( "ds.factory.enabled" ).value( Boolean.toString( NONSTANDARD_COMPONENT_FACTORY_BEHAVIOR ) ), systemProperty( "ds.loglevel" ).value( DS_LOGLEVEL ), systemProperty( "ds.cache.metadata" ).value( Boolean.toString(CACHE_META_DATA) ), - systemProperty( "logback.configurationFile" ).value( "src/test/resources/logback-test.xml" ) + systemProperty( "logback.configurationFile" ).value( "src/test/resources/logback-test.xml" ), + systemProperty( EXAM_FAIL_ON_UNRESOLVED_KEY ).value( "true" ) ); final Option vmOption = ( paxRunnerVmOption != null )? CoreOptions.vmOption( paxRunnerVmOption ): null;
