From: Sandon Van Ness Date: Wed, 23 Jan 2013 22:08:53 +0000 (-0800) Subject: Use ceph git repo instead of github. X-Git-Tag: v0.94.10~27^2^2~364^2~1078 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5d66c9ab01814388f3439690031d9875e89ef892;p=ceph.git Use ceph git repo instead of github. This code change is so that instead of pulling the tarball of github which can be unreliable at times it instead uses the ceph repo mirror and serves as the same function. Now it is using git archive and no longer uses wget. Because of this less tar-fu is needed to extract the necessary files as it can be done directly through git archive. Signed-off-by: Sandon Van Ness Reviewed-by: Sam Lang --- diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index 2450a94f4da95..bd2b5a9971cbc 100644 --- a/teuthology/task/workunit.py +++ b/teuthology/task/workunit.py @@ -234,21 +234,15 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None): args=[ 'mkdir', '--', srcdir, run.Raw('&&'), - 'wget', - '-q', - '-O-', - 'https://github.com/ceph/ceph/tarball/%s' % refspec, + 'git', + 'archive', + '--remote=git://ceph.newdream.net/git/ceph.git', + '%s:qa/workunits' % refspec, run.Raw('|'), 'tar', '-C', srcdir, '-x', - '-z', '-f-', - '--wildcards', - '--no-wildcards-match-slash', - '--strip-components=3', - '--', - '*/qa/workunits/', run.Raw('&&'), 'cd', '--', srcdir, run.Raw('&&'),