- add space before args so they work - remove . in profiler run path, this breaks the run. Oops. - use tmpdir and add -c to supress the log. tee_redirect now grabs the results. Signed-off-by: Brandon Philips --- tests/interbench/interbench.py | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/interbench/interbench.py b/tests/interbench/interbench.py index db7c28b..bcad9b5 100644 --- a/tests/interbench/interbench.py +++ b/tests/interbench/interbench.py @@ -13,16 +13,18 @@ class interbench(test.test): system('make') def execute(self, iterations = 1, args = ''): - os.chdir(self.resultsdir) + os.chdir(self.tmpdir) + args += " -c" + for i in range(1, iterations+1): - system(self.srcdir + '/interbench -m \'run #%s\'' % i \ - + args) + system("%s/interbench -m 'run #%s' %s" % \ + (self.srcdir, i, args)) # Do a profiling run if necessary profilers = self.job.profilers if profilers.present(): profilers.start(self) - system(self.srcdir + './interbench \'profile run\'' \ - + args) + system("%s/interbench -m 'profile run' %s" % \ + (self.srcdir, args)) profilers.stop(self) profilers.report(self)