[ 
https://issues.apache.org/jira/browse/ARTEMIS-4360?focusedWorklogId=870385&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-870385
 ]

ASF GitHub Bot logged work on ARTEMIS-4360:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Jul/23 16:46
            Start Date: 11/Jul/23 16:46
    Worklog Time Spent: 10m 
      Work Description: gemmellr commented on code in PR #4551:
URL: https://github.com/apache/activemq-artemis/pull/4551#discussion_r1260001242


##########
tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/ClasspathBase.java:
##########
@@ -181,7 +179,14 @@ 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.fail("Rebuild project with -Pcompatibility-tests.");

Review Comment:
   The build is failing here, fail isnt an Assume method but an Assert method.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 870385)
    Time Spent: 40m  (was: 0.5h)

> Make compatibility-tests opt in with -Pcompatibility-tests
> ----------------------------------------------------------
>
>                 Key: ARTEMIS-4360
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4360
>             Project: ActiveMQ Artemis
>          Issue Type: Task
>            Reporter: Clebert Suconic
>            Priority: Major
>             Fix For: 2.30.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> we should make compatibility-tests opt-in. from now on you have to use 
> -Pcompatibility-tests to run them.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to