mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
python/tests: let usage.py be more verbose on errors
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
parent
99b6442487
commit
0f805db40a
@ -331,8 +331,9 @@ class HelpTestSuper(TestCase):
|
||||
|
||||
if self.check_return_code:
|
||||
self.assertEqual(p.returncode, 0,
|
||||
"%s %s\nreturncode should not be %d" %
|
||||
(filename, h, p.returncode))
|
||||
"%s %s\nreturncode should not be %d\n"
|
||||
"err:\n%s\nout:\n%s" %
|
||||
(filename, h, p.returncode, err, out))
|
||||
if self.check_contains_usage:
|
||||
self.assertIn('usage', outl, 'lacks "Usage:"\n')
|
||||
if self.check_multiline:
|
||||
|
Loading…
Reference in New Issue
Block a user