Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mint - Add environment variable RUN_ON_FAIL #1180

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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