[Swift-commit] r5061 - usertools/persistent-coasters

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Fri Sep 2 10:06:47 CDT 2011


Author: wozniak
Date: 2011-09-02 10:06:47 -0500 (Fri, 02 Sep 2011)
New Revision: 5061

Modified:
   usertools/persistent-coasters/workers-cobalt.zsh
Log:
Separate Cobalt output


Modified: usertools/persistent-coasters/workers-cobalt.zsh
===================================================================
--- usertools/persistent-coasters/workers-cobalt.zsh	2011-09-02 03:39:08 UTC (rev 5060)
+++ usertools/persistent-coasters/workers-cobalt.zsh	2011-09-02 15:06:47 UTC (rev 5061)
@@ -35,7 +35,17 @@
         -E ${WORKER_LOGDIR}/worker.${ID}.err \
         -o ${WORKER_LOGDIR}/worker.${ID}.out \
         -e "WORKER_LOGGING_LEVEL=DEBUG"      \
-        ${WORKER_WRAPPER}
+        ${WORKER_WRAPPER} > cobalt-job-id.txt 2> cobalt.err
 
+  ERR_CHARS=$( wc -c cobalt.err)
+  if (( ERR_CHARS ))
+    then
+    print "Cobalt errors:"
+    cat cobalt.err
+    return 1
+  fi
+
+  log "Cobalt JobID: $( < cobalt-job-id.txt )"
+
   return 0
 }




More information about the Swift-commit mailing list