1302
1304
def run_bzr_error(self, error_regexes, *args, **kwargs):
1303
1305
"""Run bzr, and check that stderr contains the supplied regexes
1306
1308
must each be found in the error output. The relative ordering
1308
1310
:param args: command-line arguments for bzr
1309
1311
:param kwargs: Keyword arguments which are interpreted by run_bzr
1310
1312
This function changes the default value of retcode to be 3,
1311
1313
since in most cases this is run when you expect bzr to fail.
1316
1319
# Make sure that commit is failing because there is nothing to do
1317
1320
self.run_bzr_error(['no changes to commit'],
1318
1321
'commit', '-m', 'my commit comment')