You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "clebertsuconic (via GitHub)" <gi...@apache.org> on 2023/07/12 13:45:34 UTC

[GitHub] [activemq-artemis] clebertsuconic commented on a diff in pull request #4551: ARTEMIS-4360 Make compatibility-tests opt in with -Pcompatibility-tests

clebertsuconic commented on code in PR #4551:
URL: https://github.com/apache/activemq-artemis/pull/4551#discussion_r1261204904


##########
tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java:
##########
@@ -181,7 +179,15 @@ protected ClassLoader getClasspath(String name, boolean forceNew) throws Excepti
          classPathValue = buffer.toString();
       }
 
-      Assert.assertTrue("Cannot run compatibility tests, no classpath found on ./target/" + name + ".cp", classPathValue != null && !classPathValue.trim().equals(""));
+      boolean foundClassPath = classPathValue != null && !classPathValue.trim().equals("");
+
+      if (!foundClassPath) {
+         logger.info("Rebuild project with -Pcompatibility-tests. Cannot find classpath definition for {}", name);
+      }
+
+      Assume.assumeTrue("Rebuild project with -Pcompatibility-tests.", foundClassPath);
+
+      Assume.assumeTrue("Rebuild project with -Pcompatibility-tests to be able to run this test. No classpath found on ./target/" + name + ".cp", foundClassPath);

Review Comment:
   please @clebertsuconic  remove this line! 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org