1
0
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:
Stefan Metzmacher 2020-03-24 14:02:58 +01:00
parent 99b6442487
commit 0f805db40a

View File

@ -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: