]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use ceph git repo instead of github.
authorSandon Van Ness <sandon@inktank.com>
Wed, 23 Jan 2013 22:08:53 +0000 (14:08 -0800)
committerSage Weil <sage@inktank.com>
Thu, 24 Jan 2013 01:24:44 +0000 (17:24 -0800)
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 <sandon@inktank.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
(cherry picked from commit 5d66c9ab01814388f3439690031d9875e89ef892)
(cherry picked from commit 0495764ba8502a1afe17828da247b26b74a2e937)

teuthology/task/workunit.py

index 9ec81c6a8bd0711a979e0cce34cbcdbffa32fc10..55a5f9e1c02222a6ac461a93bcd71ad68c74b58b 100644 (file)
@@ -147,21 +147,15 @@ def _run_tests(ctx, refspec, role, tests, env):
         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('&&'),