]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't assume anything about the base path here. 58/head
authorZack Cerza <zack@cerza.org>
Wed, 28 Aug 2013 18:36:15 +0000 (13:36 -0500)
committerZack Cerza <zack@cerza.org>
Wed, 28 Aug 2013 18:36:15 +0000 (13:36 -0500)
teuthology/queue.py

index 97766768776dd735700fc2a2a79b6ac6d0410240..36dced4e468c363401e5a628407fa3348d9c9ec9 100644 (file)
@@ -46,7 +46,7 @@ def fetch_teuthology_branch(path, branch='master'):
     Make sure we have the correct teuthology branch checked out and up-to-date
     """
     # only let one worker create/update the checkout at a time
-    lock = filelock('%s.lock' % path);
+    lock = filelock('%s.lock' % path)
     lock.acquire()
     try:
         if not os.path.isdir(path):
@@ -54,8 +54,8 @@ def fetch_teuthology_branch(path, branch='master'):
             log.info(
                 subprocess.check_output(('git', 'clone', '--branch', branch,
                                          teuthology_git_upstream, path),
-                                        cwd=os.getenv("HOME"))
-                )
+                                        cwd=os.path.dirname(path))
+            )
         elif time.time() - os.stat('/etc/passwd').st_mtime > 60:
             # only do this at most once per minute
             log.info("Fetching %s from upstream", branch)