|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77648 - trunk/tools/build/v2/test
From: steven_at_[hidden]
Date: 2012-03-30 10:52:39
Author: steven_watanabe
Date: 2012-03-30 10:52:38 EDT (Fri, 30 Mar 2012)
New Revision: 77648
URL: http://svn.boost.org/trac/boost/changeset/77648
Log:
Reduce pauses.
Text files modified:
trunk/tools/build/v2/test/BoostBuild.py | 13 ++++++++++++-
trunk/tools/build/v2/test/absolute_sources.py | 1 +
2 files changed, 13 insertions(+), 1 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-03-30 10:52:38 EDT (Fri, 30 Mar 2012)
@@ -381,9 +381,16 @@
os.utime(self.native_file_name(name), None)
def rm(self, names):
- self.wait_for_time_change_since_last_build()
if not type(names) == types.ListType:
names = [names]
+
+ if names == ["."]:
+ # If we're deleting the entire workspace, there's no
+ # need to wait for a clock tick.
+ self.last_build_time_start = 0
+ self.last_build_time_finish = 0
+
+ self.wait_for_time_change_since_last_build()
# Avoid attempts to remove the current directory.
os.chdir(self.original_workdir)
@@ -511,6 +518,10 @@
self.tree = tree.build_tree(self.workdir)
self.difference = tree.trees_difference(self.previous_tree, self.tree)
+ if self.difference.empty():
+ # If nothing was changed, there's no need to wait
+ self.last_build_time_start = 0
+ self.last_build_time_finish = 0
self.difference.ignore_directories()
self.unexpected_difference = copy.deepcopy(self.difference)
Modified: trunk/tools/build/v2/test/absolute_sources.py
==============================================================================
--- trunk/tools/build/v2/test/absolute_sources.py (original)
+++ trunk/tools/build/v2/test/absolute_sources.py 2012-03-30 10:52:38 EDT (Fri, 30 Mar 2012)
@@ -26,6 +26,7 @@
t.run_build_system()
t.expect_addition("bin/$toolset/debug/hello.exe")
+t.rm(".")
# Test a contrived case. There, absolute name is used in a standalone project
# (not Jamfile). Moreover, the target with an absolute name is returned by
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