Skip to content

Commit

Permalink
Add environment variable RUN_ON_FAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebruch committed Apr 8, 2021
1 parent cf03b2d commit 62bfd0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,14 @@ private static void handleException(String methodName, String args, long startTi
startTime,
null,
e.toString() + " >>> " + Arrays.toString(e.getStackTrace()));
if (isRunOnFail) {
return;
}
} else {
System.out.println("<FAILED> " + methodName + " " + ((args == null) ? "" : args));
}

if (isRunOnFail) {
return;
}

throw e;
}

Expand Down Expand Up @@ -3817,7 +3818,7 @@ public static void main(String[] args) throws Exception {
replicationRole = System.getenv("MINIO_JAVA_TEST_REPLICATION_ROLE");
replicationBucketArn = System.getenv("MINIO_JAVA_TEST_REPLICATION_BUCKET_ARN");

isRunOnFail = System.getenv("RUN_ON_FAIL").equals("1");
isRunOnFail = System.getenv("RUN_ON_FAIL") != null && System.getenv("RUN_ON_FAIL").equals("1");

Process minioProcess = null;

Expand Down

0 comments on commit 62bfd0c

Please sign in to comment.