2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-11 11:42:14 +00:00

Internal Boost Build testing system cleanup - minor stylistic changes.

[SVN r79781]
This commit is contained in:
Jurko Gospodnetić
2012-07-28 09:33:03 +00:00
parent 103f8d7893
commit d1aed27ea9

View File

@@ -540,7 +540,7 @@ class Tester(TestCmd.TestCmd):
def read(self, name, binary=False):
try:
if self.toolset:
name = string.replace(name, "$toolset", self.toolset+"*")
name = string.replace(name, "$toolset", self.toolset + "*")
name = self.glob_file(name)
openMode = "r"
if binary:
@@ -778,7 +778,7 @@ class Tester(TestCmd.TestCmd):
def expect_content(self, name, content, exact=False):
actual = self.__read_file(name, exact)
content = string.replace(content, "$toolset", self.toolset+"*")
content = string.replace(content, "$toolset", self.toolset + "*")
matched = False
if exact:
@@ -893,14 +893,14 @@ class Tester(TestCmd.TestCmd):
names = [names]
r = map(self.adjust_lib_name, names)
r = map(self.adjust_suffix, r)
r = map(lambda x, t=self.toolset: string.replace(x, "$toolset", t+"*"),
r)
r = map(lambda x, t=self.toolset: string.replace(x, "$toolset", t + "*"
), r)
return r
def native_file_name(self, name):
name = self.adjust_names(name)[0]
elements = string.split(name, "/")
return os.path.normpath(apply(os.path.join, [self.workdir]+elements))
return os.path.normpath(apply(os.path.join, [self.workdir] + elements))
def wait_for_time_change(self, original_timestamp=None):
"""