Skip execution on skipTests 92/111592/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 3 May 2024 18:31:28 +0000 (20:31 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 3 May 2024 18:35:54 +0000 (20:35 +0200)
Previous incarnation of this test was executing via surefire, hence it
would be suppressed via -DskipTests. Restore this behaviour.

JIRA: ODLPARENT-312
Change-Id: I0c398d7b2d007161be515f8d9d7242bcee208023
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features-test-plugin/src/main/java/org/opendaylight/odlparent/features/test/plugin/TestFeaturesMojo.java

index 2d72e1c71071fa76a66e9c2dc3dc4383a5ef284d..69a7ebf01a9949a85665c1c1137cf7a239e5a159 100644 (file)
@@ -74,6 +74,8 @@ public final class TestFeaturesMojo extends AbstractMojo {
 
     @Parameter(property = "sft.skip", defaultValue = "false")
     private boolean skip;
+    @Parameter(property = "skipTests", defaultValue = "false")
+    private boolean skipTests;
     @Deprecated(since = "13.0.10", forRemoval = true)
     @Parameter(property = "skip.karaf.featureTest", defaultValue = "false")
     private boolean legacySkip;
@@ -108,7 +110,7 @@ public final class TestFeaturesMojo extends AbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException {
-        if (skip) {
+        if (skip || skipTests) {
             LOG.debug("Skipping execution");
             return;
         }