]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: avoid using make install for fio 17583/head
authorNeha Ojha <nojha@redhat.com>
Tue, 12 Sep 2017 15:26:27 +0000 (08:26 -0700)
committerNeha Ojha <nojha@redhat.com>
Tue, 12 Sep 2017 15:26:27 +0000 (08:26 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
qa/suites/rados/perf/workloads/sample_fio.yaml
qa/tasks/cbt.py

index 92a77034c899930485ddc433edd2f0b7da16e572..d0fe0debde5a2c08b22673714f15717eabe4bfd9 100644 (file)
@@ -13,7 +13,6 @@ tasks:
         osd_ra: [4096]
         pool_profile: 'rbd'
         log_avg_msec: 100
-        cmd_path: '/usr/local/bin/fio'
     cluster:
       user: 'ubuntu'
       osds_per_node: 3
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'
             ]
         )