Mercurial > hgsubversion
diff tests/test_unaffected_core.py @ 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 | 903c9c9dfe6a |
children | 38be7a6b6def |
line wrap: on
line diff
--- 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')