From: Neha Ojha Date: Tue, 12 Sep 2017 15:26:27 +0000 (-0700) Subject: qa: avoid using make install for fio X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08b40a294bf2012d69e4006ae944c09ad98b7d89;p=ceph.git qa: avoid using make install for fio Signed-off-by: Neha Ojha --- diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 810299449ef..89a83a54c33 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -38,9 +38,14 @@ class CBT(Task): tmp_dir='/tmp/cbt', pool_profiles=self.config.get('cluster', {}).get('pool_profiles'), ) + benchmark_config = self.config.get('benchmarks') + benchmark_type = benchmark_config.keys()[0] + if benchmark_type == 'librbdfio': + testdir = misc.get_testdir(self.ctx) + benchmark_config['librbdfio']['cmd_path'] = os.path.join(testdir, 'fio/fio') return dict( cluster=cluster_config, - benchmarks=self.config.get('benchmarks'), + benchmarks=benchmark_config, ) def install_dependencies(self): @@ -67,8 +72,7 @@ class CBT(Task): args=[ 'cd', os.path.join(testdir, 'fio'), run.Raw('&&'), './configure', run.Raw('&&'), - 'make', run.Raw('&&'), - 'sudo', 'make', 'install' + 'make' ] )