commit | e4cf91f12e6a40b472bf925905c8a2a499ed6b68 | [log] [tgz] |
---|---|---|
author | Chris Hillery <chillery@lambda.nu> | Thu May 26 14:26:11 2016 -0700 |
committer | Chris Hillery <ceej@lambda.nu> | Thu May 26 16:03:17 2016 -0700 |
tree | 23961e7e2164106c0840351621e55fdd2559a312 | |
parent | fb188dbdc0c9d5e388ca3354cd0ce0c73d9d8905 [diff] |
Fix first-time test failure Change-Id: Id96760b94afcfadcf884c52bb7c00d82b1b35ef4 Reviewed-on: https://asterix-gerrit.ics.uci.edu/888 Reviewed-by: Ian Maxon <imaxon@apache.org> Reviewed-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks-fullstack/hyracks/hyracks-server/src/test/java/org/apache/hyracks/server/test/NCServiceIT.java b/hyracks-fullstack/hyracks/hyracks-server/src/test/java/org/apache/hyracks/server/test/NCServiceIT.java index 0cc1031..bd99c8c 100644 --- a/hyracks-fullstack/hyracks/hyracks-server/src/test/java/org/apache/hyracks/server/test/NCServiceIT.java +++ b/hyracks-fullstack/hyracks/hyracks-server/src/test/java/org/apache/hyracks/server/test/NCServiceIT.java
@@ -100,7 +100,9 @@ private static Process invoke(String logfile, String... args) throws Exception { ProcessBuilder pb = new ProcessBuilder(args); pb.redirectErrorStream(true); - File log = new File(LOG_DIR, logfile); + File logDir = new File(LOG_DIR); + logDir.mkdirs(); + File log = new File(logDir, logfile); log.delete(); pb.redirectOutput(ProcessBuilder.Redirect.appendTo(log)); Process p = pb.start();