Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79474 - trunk/tools/build/v2/test
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-13 14:30:10


Author: jurko
Date: 2012-07-13 14:30:09 EDT (Fri, 13 Jul 2012)
New Revision: 79474
URL: http://svn.boost.org/trac/boost/changeset/79474

Log:
Minor stylistic internal Boost Build testing system changes.
Text files modified:
   trunk/tools/build/v2/test/BoostBuild.py | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/tools/build/v2/test/BoostBuild.py
==============================================================================
--- trunk/tools/build/v2/test/BoostBuild.py (original)
+++ trunk/tools/build/v2/test/BoostBuild.py 2012-07-13 14:30:09 EDT (Fri, 13 Jul 2012)
@@ -508,9 +508,9 @@
         if expected_duration is not None:
             actual_duration = self.last_build_time_finish - build_time_start
             if actual_duration > expected_duration:
- print "Test run lasted %f seconds while it was expected to " \
+ print("Test run lasted %f seconds while it was expected to "
                     "finish in under %f seconds." % (actual_duration,
- expected_duration)
+ expected_duration))
                 self.fail_test(1, dump_stdio=False)
 
         self.tree = tree.build_tree(self.workdir)
@@ -889,7 +889,7 @@
     def wait_for_time_change_since_last_build(self):
         """
           Wait until newly assigned file system timestamps are larger than the
- one assigned to files created by our previous build run. Used to make
+ ones assigned to files created by our previous build run. Used to make
         subsequent builds correctly recognize newly created or touched files.
 
         """
@@ -897,7 +897,8 @@
             # In fact, I'm not sure why "+ 2" as opposed to "+ 1" is needed but
             # empirically, "+ 1" sometimes causes 'touch' and other functions
             # not to bump the file time enough for a rebuild to happen.
- if math.floor(time.time()) < math.floor(self.last_build_time_finish) + 2:
+ if (math.floor(time.time()) <
+ math.floor(self.last_build_time_finish) + 2):
                 time.sleep(0.1)
             else:
                 break


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