comparison tests/test_util.py @ 1344:38be7a6b6def stable 1.8.2

tests: have our dispatch wrappers assert --quiet is always passed This should help avoid regressions in the "progress eats my testsuite dots" area.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Aug 2015 16:52:38 -0400
parents e597714cb420
children 3c213ca49f7e
comparison
equal deleted inserted replaced
1343:e597714cb420 1344:38be7a6b6def
288 u.setconfig('hgsubversion', 'layout', layout) 288 u.setconfig('hgsubversion', 'layout', layout)
289 u.setconfig('hgsubversion', 'startrev', startrev) 289 u.setconfig('hgsubversion', 'startrev', startrev)
290 return u 290 return u
291 291
292 def dispatch(cmd): 292 def dispatch(cmd):
293 assert '--quiet' in cmd
293 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd) 294 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd)
294 return dispatchmod.dispatch(cmd) 295 return dispatchmod.dispatch(cmd)
295 296
296 def rmtree(path): 297 def rmtree(path):
297 # Read-only files cannot be removed under Windows 298 # Read-only files cannot be removed under Windows