|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2008-07-03 14:22:07
Author: troy
Date: 2008-07-03 14:22:07 EDT (Thu, 03 Jul 2008)
New Revision: 47052
URL: http://svn.boost.org/trac/boost/changeset/47052
Log:
check for empty result set
Text files modified:
branches/CMake/release/tools/build/CMake/post.py.in | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: branches/CMake/release/tools/build/CMake/post.py.in
==============================================================================
--- branches/CMake/release/tools/build/CMake/post.py.in (original)
+++ branches/CMake/release/tools/build/CMake/post.py.in 2008-07-03 14:22:07 EDT (Thu, 03 Jul 2008)
@@ -30,8 +30,14 @@
# + "\n>>>"
p = os.path.join(logdir, "Log.marshal")
+
+if not os.path.exists(p):
+ print "No results to submit"
+ sys.exit(0)
+
f = open(p, "rb")
+i = 0
while True:
try:
r = marshal.load(f)
@@ -40,9 +46,11 @@
'parent_target' : parent_target,
'build_or_test' : build_or_test })
s.traash.step(r)
+ i += 1
except EOFError, e:
break
+print "Submitted ", i, " steps."
f.close()
os.remove(p)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk