1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +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: if self.check_return_code:
self.assertEqual(p.returncode, 0, self.assertEqual(p.returncode, 0,
"%s %s\nreturncode should not be %d" % "%s %s\nreturncode should not be %d\n"
(filename, h, p.returncode)) "err:\n%s\nout:\n%s" %
(filename, h, p.returncode, err, out))
if self.check_contains_usage: if self.check_contains_usage:
self.assertIn('usage', outl, 'lacks "Usage:"\n') self.assertIn('usage', outl, 'lacks "Usage:"\n')
if self.check_multiline: if self.check_multiline: