Create test projects with positional argument
In the years since our test framework was created, the create-project CLI syntax has changed and the --name parameter is deprecated in favor of using a positional argument. Switching to this newer syntax becomes necessary for newer Gerrit versions which no longer recognize the --name option. Change-Id: I342de827d6a7d7af418f4b1eac54f5dce7c672ed
This commit is contained in:
parent
b461d8ff1d
commit
deb6d08645
@ -243,8 +243,8 @@ class BaseGitReviewTestCase(testtools.TestCase, GerritHelpers):
|
||||
self._configure_ssh(ssh_addr, ssh_port)
|
||||
|
||||
# create Gerrit empty project
|
||||
self._run_gerrit_cli('create-project', '--empty-commit',
|
||||
'--name', 'test/test_project')
|
||||
self._run_gerrit_cli('create-project', 'test/test_project',
|
||||
'--empty-commit')
|
||||
|
||||
# setup isolated area to work under
|
||||
self.useFixture(IsoEnvDir(self.site_dir))
|
||||
|
@ -440,8 +440,8 @@ class GitReviewTestCase(tests.BaseGitReviewTestCase):
|
||||
self._run_gerrit_cli('review', head, '--abandon')
|
||||
|
||||
# Populate "project2" repo
|
||||
self._run_gerrit_cli('create-project', '--empty-commit', '--name',
|
||||
'test/test_project2')
|
||||
self._run_gerrit_cli('create-project', 'test/test_project2',
|
||||
'--empty-commit')
|
||||
project2_uri = self.project_uri.replace('test/test_project',
|
||||
'test/test_project2')
|
||||
self._run_git('fetch', project2_uri, 'HEAD')
|
||||
|
Loading…
x
Reference in New Issue
Block a user