This commit is contained in:
Chris Frohoff
2022-03-24 23:47:14 -07:00
parent 42da73e4ee
commit f778c5d0ec
@@ -84,7 +84,7 @@ public class PayloadsTest {
int tries = 1;
if ( t != null ) {
if (System.getProperty("forceTests") == null) {
if (isForceTests()) {
if ( !t.skip().isEmpty() ) {
Assume.assumeTrue(t.skip(), false);
}
@@ -145,6 +145,10 @@ public class PayloadsTest {
}
}
private static boolean isForceTests() {
return System.getProperty("forceTests") == null;
}
private static Callable<byte[]> makeSerializeCallable ( final Class<? extends ObjectPayload<?>> payloadClass, final String command ) {
return new Callable<byte[]>() {
@@ -259,6 +263,6 @@ public class PayloadsTest {
PayloadListener listener = new PayloadListener();
junit.addListener(listener);
Result result = junit.run(PayloadsTest.class);
System.exit(result.wasSuccessful() ? 0 : 1);
System.exit(isForceTests() ? 0 : (result.wasSuccessful() ? 0 : 1));
}
}