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 28, 2021
1 parent c27005f commit 074443d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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 @@ -423,6 +424,9 @@ 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));
}
Expand Down Expand Up @@ -3803,6 +3807,8 @@ public static void main(String[] args) throws Exception {
mintEnv = (mintMode != null);
if (mintEnv) {
isQuickTest = !mintMode.equals("full");
isRunOnFail =
System.getenv("RUN_ON_FAIL") != null && System.getenv("RUN_ON_FAIL").equals("1");
String dataDir = System.getenv("MINT_DATA_DIR");
if (dataDir != null && !dataDir.equals("")) {
dataFile1Kb = Paths.get(dataDir, "datafile-1-kB");
Expand Down

0 comments on commit 074443d

Please sign in to comment.