]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
workunit: Fetch source from github.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 16 Sep 2011 18:32:15 +0000 (11:32 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 16 Sep 2011 18:32:15 +0000 (11:32 -0700)
Needed an elaborate dance because Github won't let us download
an archive of a subdirectory.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
teuthology/task/workunit.py

index 5ef90c41252e7bceecd404a96edb581330424b45..fdacd71cacf538182eb181a585c38977cfa920b8 100644 (file)
@@ -107,18 +107,22 @@ def _run_tests(ctx, role, tests):
         args=[
             'mkdir', '--', srcdir,
             run.Raw('&&'),
-            'git',
-            'archive',
-            '--format=tar',
-            '--remote=git://ceph.newdream.net/git/ceph.git',
-            '--',
+            'wget',
+            '-q',
+            '-O-',
             # TODO make branch/tag/sha1 used configurable
-            'HEAD:qa/workunits/',
+            'https://github.com/NewDreamNetwork/ceph/tarball/HEAD',
             run.Raw('|'),
             'tar',
             '-C', srcdir,
             '-x',
+            '-z',
             '-f-',
+            '--wildcards',
+            '--no-wildcards-match-slash',
+            '--strip-components=3',
+            '--',
+            '*/qa/workunits/',
             run.Raw('&&'),
             'cd', '--', srcdir,
             run.Raw('&&'),