From 6175a133f4d158a9edc3fdd36b98ac3f9e1b8edf Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 28 Aug 2013 13:36:15 -0500 Subject: [PATCH] Don't assume anything about the base path here. --- teuthology/queue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.47.3