From: Zack Cerza Date: Wed, 28 Aug 2013 18:36:15 +0000 (-0500) Subject: Don't assume anything about the base path here. X-Git-Tag: 1.1.0~1921^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58%2Fhead;p=teuthology.git Don't assume anything about the base path here. --- diff --git a/teuthology/queue.py b/teuthology/queue.py index 977667687..36dced4e4 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -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)