]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
workunit: set CEPH_CLI_TEST_DUP_COMMAND
authorSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 00:15:55 +0000 (17:15 -0700)
committerSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 00:16:08 +0000 (17:16 -0700)
This will make the CLI do every mon command twice and make sure they both
succeed.  This catches problems with mon command idempotency faster than
waiting for random failures trigger.

teuthology/task/workunit.py

index 8d96b90270e6e13aea92dadc1fa7518fbd9267bb..04ebb2aa33281800c5e6c581216aa47d1d32daa7 100644 (file)
@@ -276,6 +276,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None):
                     run.Raw('&&'),
                     'cd', '--', scratch_tmp,
                     run.Raw('&&'),
+                    run.Raw('CEPH_CLI_TEST_DUP_COMMAND=1'),
                     run.Raw('CEPH_REF={ref}'.format(ref=refspec)),
                     run.Raw('TESTDIR="{tdir}"'.format(tdir=testdir)),
                     run.Raw('CEPH_ID="{id}"'.format(id=id_)),