pass
+class TestDataRepoManifest(RepoManifest):
+ """Test repo manifest"""
+ def add_project(self, name, branches):
+ """Add new project to the manifest"""
+ prj_e = self._doc.createElement('project')
+ prj_e.setAttribute('name', name)
+ for branch, revision in branches.iteritems():
+ br_e = self._doc.createElement('branch')
+ br_e.setAttribute('name', branch)
+ br_e.setAttribute('revision', revision)
+ prj_e.appendChild(br_e)
+ self._doc.firstChild.appendChild(prj_e)
+
+
def run_cmd(cmd, opts=None, capture_stdout=False, capture_stderr=False):
"""Run command"""
args = [cmd] + opts if opts else [cmd]
if args.update_branches != 'no':
force = True if args.update_branches == 'force' else False
update_from_remote('origin', force=force)
- test_manifest = RepoManifest()
+ test_manifest = TestDataRepoManifest()
for pkg, pkgconf in TEST_PKGS.iteritems():
if 'export_branches' in pkgconf:
update_testrepo_manifest(test_manifest, pkg,