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 Jan 13, 2022
1 parent fa55bd0 commit 77012ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,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 @@ -429,6 +430,9 @@ public static void handleException(String methodName, String args, long startTim
startTime,
null,
e.toString() + " >>> " + Arrays.toString(e.getStackTrace()));
if (isRunOnFail) {
return;
}
} else {
System.out.println("<FAILED> " + methodName + " " + ((args == null) ? "" : args));
}
Expand Down Expand Up @@ -3925,6 +3929,7 @@ public static void main(String[] args) throws Exception {
mintEnv = (mintMode != null);
if (mintEnv) {
isQuickTest = !mintMode.equals("full");
isRunOnFail = "1".equals(System.getenv("RUN_ON_FAIL"));
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 77012ea

Please sign in to comment.