2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00
* test/BoostBuild.py
    (Tester.expand_toolset): New method.


[SVN r18180]
This commit is contained in:
Vladimir Prus
2003-04-04 07:52:09 +00:00
parent 7786ca9bc2
commit 1beb700397
2 changed files with 12 additions and 0 deletions

View File

@@ -205,6 +205,12 @@ class Tester(TestCmd.TestCmd):
if not os.path.exists(self.workdir):
os.mkdir(self.workdir)
os.chdir(self.workdir)
def expand_toolset(self, name):
"""Expands $toolset in the given file to tested toolset"""
content = self.read(name)
content = string.replace(content, "$toolset", self.toolset)
self.write(name, content)
#
# FIXME: Large portion copied from TestSCons.py, should be moved?

View File

@@ -205,6 +205,12 @@ class Tester(TestCmd.TestCmd):
if not os.path.exists(self.workdir):
os.mkdir(self.workdir)
os.chdir(self.workdir)
def expand_toolset(self, name):
"""Expands $toolset in the given file to tested toolset"""
content = self.read(name)
content = string.replace(content, "$toolset", self.toolset)
self.write(name, content)
#
# FIXME: Large portion copied from TestSCons.py, should be moved?