]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
suites/rbd: avoid redundant helgrind tests
authorJason Dillaman <dillaman@redhat.com>
Wed, 13 Jan 2016 02:06:48 +0000 (21:06 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 13 Jan 2016 02:08:00 +0000 (21:08 -0500)
Allow rbd_fsx to accept an override for which valgrind tool to use.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
suites/rbd/valgrind/validator/helgrind.yaml
suites/rbd/valgrind/validator/memcheck.yaml
suites/rbd/valgrind/workloads/fsx.yaml
suites/rbd/valgrind/workloads/fsx_helgrind.yaml [deleted file]
tasks/rbd_fsx.py

index 327492a18eb3e378fa018fcd01f7785af7bb3b41..bb9501263ff49e82e10b4317cad1881d7b079c6b 100644 (file)
@@ -1,4 +1,6 @@
 overrides:
+  rbd_fsx:
+    valgrind: ["--tool=helgrind"]
   workunit:
     env:
       VALGRIND: "helgrind"
index abb299179931e0b57be80ac3839d162600e7be82..94e87168ae34be6ceb24422d57db55523fb745fa 100644 (file)
@@ -1,4 +1,6 @@
 overrides:
+  rbd_fsx:
+    valgrind: ["--tool=memcheck"]
   workunit:
     env:
       VALGRIND: "memcheck"
index ebf85dc51e9b9a95f82be3d49ef3cac19faba01c..5c745a2c6ec5f960db763d0584cbb44440595102 100644 (file)
@@ -2,4 +2,3 @@ tasks:
 - rbd_fsx:
     clients: [client.0]
     size: 134217728
-    valgrind: [--tool=memcheck]
diff --git a/suites/rbd/valgrind/workloads/fsx_helgrind.yaml b/suites/rbd/valgrind/workloads/fsx_helgrind.yaml
deleted file mode 100644 (file)
index 08cdc2a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-tasks:
-- rbd_fsx:
-    clients: [client.0]
-    size: 134217728
-    valgrind: [--tool=helgrind]
index 90a208f41cd08129cb4d4cca2a538d8eb13fe9d2..69baf511f468dfae73feb50728b64a412c21dc0c 100644 (file)
@@ -33,6 +33,7 @@ def task(ctx, config):
           seed: <random seed number, or 0 to use the time>
           ops: <number of operations to do>
           size: <maximum image size in bytes>
+          valgrind: [--tool=<valgrind tool>]
     """
     log.info('starting rbd_fsx...')
     with parallel() as p:
@@ -55,6 +56,9 @@ def _run_one_client(ctx, config, role):
         '{tdir}/archive/coverage'.format(tdir=testdir)
     ])
 
+    overrides = ctx.config.get('overrides', {})
+    teuthology.deep_merge(config, overrides.get('rbd_fsx', {}))
+
     if config.get('valgrind'):
         args = teuthology.get_valgrind_args(
             testdir,