If you want to find the results from tiobench, you currently have to dig through debug logs. This should be an improvement on that.
Changes from v1: * Do the results reporting similarly to what's been done in other benchmarks. * Instead of doing the default 2 runs at one autotest iteration, slightly modify the default control file to run 2 iterations using the autotest engine, and exemplifying the use of the iterations argument that job.run_test() can take. Signed-off-by: Jeff Moyer <[email protected]> Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- client/tests/tiobench/control | 5 ++++- client/tests/tiobench/tiobench.py | 11 +++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/tests/tiobench/control b/client/tests/tiobench/control index ee806cf..dd40a26 100644 --- a/client/tests/tiobench/control +++ b/client/tests/tiobench/control @@ -9,4 +9,7 @@ DOC = """ Performs threaded I/O benchmarks. """ -job.run_test('tiobench', dir='/mnt') +job.run_test('tiobench', + args='--block=4096 --block=8192 --threads=10 --size=1024', + iterations=2, + dir='/mnt') diff --git a/client/tests/tiobench/tiobench.py b/client/tests/tiobench/tiobench.py index e0693aa..747fc26 100644 --- a/client/tests/tiobench/tiobench.py +++ b/client/tests/tiobench/tiobench.py @@ -1,4 +1,4 @@ -import os +import os, logging from autotest_lib.client.bin import test, utils @@ -29,4 +29,11 @@ class tiobench(test.test): self.args = args os.chdir(self.srcdir) - utils.system('./tiobench.pl --dir %s %s' %(self.dir, self.args)) + results = utils.system_output('./tiobench.pl --dir %s %s' % + (self.dir, self.args)) + + logging.info(results) + results_path = os.path.join(self.resultsdir, + 'raw_output_%s' % self.iteration) + + utils.open_write_close(results_path, results) -- 1.7.2.3 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
