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 Jun 16, 2021
1 parent c27005f commit 68e5ddd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public class FunctionalTest {
private static String bucketNameWithLock = getRandomName();
private static boolean mintEnv = false;
private static boolean isQuickTest = false;
private static boolean isRunOnFail = false;
private static Path dataFile1Kb;
private static Path dataFile6Mb;
private static String endpoint;
Expand Down Expand Up @@ -427,6 +428,10 @@ private static void handleException(String methodName, String args, long startTi
System.out.println("<FAILED> " + methodName + " " + ((args == null) ? "" : args));
}

if (isRunOnFail) {
return;
}

throw e;
}

Expand Down Expand Up @@ -3813,6 +3818,8 @@ 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") != null && System.getenv("RUN_ON_FAIL").equals("1");

Process minioProcess = null;

String kmsKeyName = "my-minio-key";
Expand Down

0 comments on commit 68e5ddd

Please sign in to comment.