]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
do not check the jobid if check-locks is False 27/head
authorLoic Dachary <loic@dachary.org>
Tue, 13 Aug 2013 10:43:21 +0000 (12:43 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 13 Aug 2013 17:32:01 +0000 (19:32 +0200)
Because it relies on the lock server which is presumably not available
since check-locks was set to False. It matters when using teuthology
on a minimal installation.

http://tracker.ceph.com/issues/5946 fixes #5946

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/misc.py

index 33bdc4ec0735c35b696171fc27f682b675311204..958cb64ea5ac1f992dcc48f3a727b4dbd5d19a82 100644 (file)
@@ -36,7 +36,7 @@ def get_testdir(ctx):
 
     # check if a jobid exists in the machine status for all our targets
     # and if its the same jobid, use that as the subdir for the test
-    if not checked_jobid:
+    if not checked_jobid and ctx.config.get('check-locks') != False:
         jobids = {}
         for machine in ctx.config['targets'].iterkeys():
             status = lockstatus.get_status(ctx, machine)