From b120f5cf00e640d01e2cf96a10e3ac26040ee666 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Tue, 24 Nov 2009 02:12:50 +0000 Subject: [PATCH] Rename the TimeSCons.run_build() method to just TimeSCons.run() so the parent class TestSCons.up_to_date() method will use it to print the --debug=memory and --debug=times stats during up-to-date runs. Fix the TestSCons.up_to_date() regular expression so the memory and timing output won't cause the check to fail. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4476 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- QMTest/TestSCons.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index ab014a9f..d66bd931 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -373,7 +373,9 @@ class TestSCons(TestCommon): arguments = options + " " + arguments kw['arguments'] = arguments stdout = self.wrap_stdout(read_str = read_str, build_str = s) - kw['stdout'] = re.escape(stdout) + # Append '.*' so that timing output that comes after the + # up-to-date output is okay. + kw['stdout'] = re.escape(stdout) + '.*' kw['match'] = self.match_re_dotall apply(self.run, [], kw) @@ -1004,8 +1006,8 @@ class TimeSCons(TestSCons): """ kw['options'] = kw.get('options', '') + ' --help' # TODO(1.5) - #self.run_build(*args, **kw) - apply(self.run_build, args, kw) + #self.run(*args, **kw) + apply(self.run, args, kw) sys.stdout.write(self.stdout()) print "RESULT", self.elapsed_time() @@ -1014,8 +1016,8 @@ class TimeSCons(TestSCons): Runs a full build of SCons. """ # TODO(1.5) - #self.run_build(*args, **kw) - apply(self.run_build, args, kw) + #self.run(*args, **kw) + apply(self.run, args, kw) sys.stdout.write(self.stdout()) print "RESULT", self.elapsed_time() @@ -1039,7 +1041,7 @@ class TimeSCons(TestSCons): """ return self.endTime - self.startTime - def run_build(self, *args, **kw): + def run(self, *args, **kw): """ Runs a single build command, capturing output in the specified file. -- 2.26.2