summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-12-19 16:11:40 (GMT)
committerSteven Knight <knight@baldmt.com>2009-12-19 16:11:40 (GMT)
commitb514fd51e5e5cae85fa58ebd4f1eadd25570f5d6 (patch)
tree462d68a90bc2b065099b4919c856bd05c3e5028d /QMTest
parent56524ddacca7c595ce8c01f5569e51b3c897ad57 (diff)
downloadSCons-b514fd51e5e5cae85fa58ebd4f1eadd25570f5d6.zip
SCons-b514fd51e5e5cae85fa58ebd4f1eadd25570f5d6.tar.gz
SCons-b514fd51e5e5cae85fa58ebd4f1eadd25570f5d6.tar.bz2
Speed up the time-scons.py "build" of SCons with compiled *.pyc files,
by just invoking setup.py directly instead of packing and unpacking the distributable .tar.gz file. Refactor to be able to capture historical statistics (of previous revisions) by preparing the "built" revision once and then running all of the requested timing scripts, with output going to a separate log file for each revision + script. Fix TestSCons.py so that it interprets the scons script name to be tested relative to the invoking directory, not always relative to src/script.
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index ad773a0..03bf552 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -241,6 +241,8 @@ class TestSCons(TestCommon):
kw['program'] = 'scons'
else:
kw['program'] = 'scons.py'
+ elif not os.path.isabs(kw['program']):
+ kw['program'] = os.path.join(self.orig_cwd, kw['program'])
if not kw.has_key('interpreter') and not os.environ.get('SCONS_EXEC'):
kw['interpreter'] = [python, '-tt']
if not kw.has_key('match'):