]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: avoid using make install for fio
authorNeha Ojha <nojha@redhat.com>
Tue, 12 Sep 2017 15:26:27 +0000 (08:26 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 3 Dec 2018 19:43:01 +0000 (11:43 -0800)
Signed-off-by: Neha Ojha <nojha@redhat.com>
qa/tasks/cbt.py

index 810299449ef2f9c608af7e03d64608fe00d6b99f..89a83a54c33a010fa3e8a91cf061ab236135c671 100644 (file)
@@ -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'
             ]
         )