asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hillery (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: Fix first-time test failure
Date Thu, 26 May 2016 23:03:18 GMT
Chris Hillery has submitted this change and it was merged.

Change subject: Fix first-time test failure
......................................................................


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>
---
M hyracks-fullstack/hyracks/hyracks-server/src/test/java/org/apache/hyracks/server/test/NCServiceIT.java
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Ian Maxon: Looks good to me, approved
  Jenkins: Looks good to me, but someone else must approve; Verified



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();

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/888
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id96760b94afcfadcf884c52bb7c00d82b1b35ef4
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Chris Hillery <ceej@lambda.nu>
Gerrit-Reviewer: Chris Hillery <ceej@lambda.nu>
Gerrit-Reviewer: Ian Maxon <imaxon@apache.org>
Gerrit-Reviewer: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Mime
View raw message