From: Loic Dachary Date: Thu, 25 Aug 2016 09:34:46 +0000 (+0200) Subject: workunit: allow parallel git clone X-Git-Tag: v0.94.10~27^2^2~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac285280f41cb5052aabd915d5510476cd871b73;p=ceph.git workunit: allow parallel git clone When multiple client run in parallel on the same machine and they try to get workunits from a repository that is not github, they must git clone in a directory that is suffixed as srcdir. Otherwise they will conflict with each other. Fixes: http://tracker.ceph.com/issues/17116 Signed-off-by: Loic Dachary (cherry picked from commit b9813e490ec8a5bb59e177612f047899397c342e) --- diff --git a/tasks/workunit.py b/tasks/workunit.py index 86bcdb5b9f64..12e5b98db1e7 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -288,7 +288,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None): else: scratch_tmp = os.path.join(mnt, subdir) srcdir = '{tdir}/workunit.{role}'.format(tdir=testdir, role=role) - clonedir = '{tdir}/clone'.format(tdir=testdir) + clonedir = '{tdir}/clone.{role}'.format(tdir=testdir, role=role) git_url = teuth_config.get_ceph_git_url() if 'github.com/ceph/ceph' in git_url: