Mercurial > hgsubversion
changeset 1343:e597714cb420 stable
tests: pass --quiet anyplace we call dispatch to run a command
Without this the now-in-core progress code will fire when we run
dispatch since that picks up a clean ui.ui() instance that we can't
set .quiet on easily.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 11 Aug 2015 16:56:37 -0400 |
parents | c6b01fd34694 |
children | 38be7a6b6def |
files | tests/test_single_dir_push.py tests/test_unaffected_core.py tests/test_util.py |
diffstat | 3 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_single_dir_push.py +++ b/tests/test_single_dir_push.py @@ -171,7 +171,7 @@ class TestSingleDirPush(test_util.TestBa # Tests pulling and pushing with a renamed branch # Based on test_push_single_dir repo_path = self.load_svndump('branch_from_tag.svndump') - cmd = ['clone', '--layout=single', '--branch=flaf'] + cmd = ['clone', '--quiet', '--layout=single', '--branch=flaf'] if self.stupid: cmd.append('--stupid') cmd += [test_util.fileurl(repo_path), self.wc_path]
--- a/tests/test_unaffected_core.py +++ b/tests/test_unaffected_core.py @@ -26,7 +26,7 @@ class TestMercurialCore(test_util.TestBa def test_update(self): ''' Test 'clone --updaterev' ''' ui = self.ui() - _dispatch(ui, ['init', self.wc_path]) + _dispatch(ui, ['init', '--quiet', self.wc_path]) repo = self.repo repo.ui.setconfig('ui', 'username', 'anonymous') @@ -46,8 +46,9 @@ class TestMercurialCore(test_util.TestBa self.assertEqual(test_util.repolen(repo), 3) updaterev = 1 - _dispatch(ui, ['clone', self.wc_path, self.wc_path + '2', - '--updaterev=%s' % updaterev]) + _dispatch(ui, ['clone', '--quiet', + self.wc_path, self.wc_path + '2', + '--updaterev=%s' % updaterev]) repo2 = hg.repository(ui, self.wc_path + '2') @@ -57,7 +58,7 @@ class TestMercurialCore(test_util.TestBa def test_branch(self): ''' Test 'clone --branch' ''' ui = self.ui() - _dispatch(ui, ['init', self.wc_path]) + _dispatch(ui, ['init', '--quiet', self.wc_path]) repo = self.repo repo.ui.setconfig('ui', 'username', 'anonymous') @@ -80,8 +81,10 @@ class TestMercurialCore(test_util.TestBa self.assertEqual(test_util.repolen(repo), 3) branch = 'B1' - _dispatch(ui, ['clone', self.wc_path, self.wc_path + '2', - '--branch', branch]) + _dispatch(ui, [ + 'clone', '--quiet', + self.wc_path, self.wc_path + '2', + '--branch', branch]) repo2 = hg.repository(ui, self.wc_path + '2')