Converting fio test to run_once.
Part of the patch series to make tests using profiling transparently
Risk: low
Visibility: low - users of fio test
Signed-off-by: Lucas Meneghel Rodrigues <lucasmr@br.ibm.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2052 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/fio/fio.py b/client/tests/fio/fio.py
index ca580b4..b648818 100644
--- a/client/tests/fio/fio.py
+++ b/client/tests/fio/fio.py
@@ -26,18 +26,10 @@
utils.system('%s %s make' % (var_ldflags, var_cflags))
- def execute(self, args = '', user = 'root'):
+ def run_once(self, args = '', user = 'root'):
os.chdir(self.srcdir)
##vars = 'TMPDIR=\"%s\" RESULTDIR=\"%s\"' % (self.tmpdir, self.resultsdir)
vars = 'LD_LIBRARY_PATH="' + self.autodir + '/deps/libaio/lib"'
- ##args = '-m -o ' + self.resultsdir + '/fio-tio.log ' + self.srcdir + '/examples/tiobench-example';
- args = '--output ' + self.resultsdir + '/fio-mixed.log ' + self.bindir + '/fio-mixed.job';
+ ##args = '-m -o ' + self.resultsdir + '/fio-tio.log ' + self.srcdir + '/examples/tiobench-example'
+ args = '--output ' + self.resultsdir + '/fio-mixed.log ' + self.bindir + '/fio-mixed.job'
utils.system(vars + ' ./fio ' + args)
-
- # Do a profiling run if necessary
- profilers = self.job.profilers
- if profilers.present():
- profilers.start(self)
- utils.system(vars + ' ./fio ' + args)
- profilers.stop(self)
- profilers.report(self)