From: Stefan Metzmacher Date: Tue, 2 Aug 2016 16:38:33 +0000 (+0200) Subject: tests:blackbox: let samba_dnsupdate.py provide more details X-Git-Tag: tevent-0.9.30~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcdef0082a190dd9ed0b365c9103429a3a75adc3;p=thirdparty%2Fsamba.git tests:blackbox: let samba_dnsupdate.py provide more details BUG: https://bugzilla.samba.org/show_bug.cgi?id=12108 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison Reviewed-by: Michael Adam --- diff --git a/python/samba/tests/blackbox/samba_dnsupdate.py b/python/samba/tests/blackbox/samba_dnsupdate.py index 8cf367f6c35..ee8ae2673f4 100644 --- a/python/samba/tests/blackbox/samba_dnsupdate.py +++ b/python/samba/tests/blackbox/samba_dnsupdate.py @@ -44,14 +44,14 @@ class SambaDnsUpdateTests(samba.tests.BlackboxTestCase): try: out = self.check_output("samba_dnsupdate --verbose --use-nsupdate --current-ip=10.0.0.1") - except samba.tests.BlackboxProcessError: - self.fail("Error calling samba_dnsupdate") + except samba.tests.BlackboxProcessError as e: + self.fail("Error calling samba_dnsupdate: %s" % e) self.assertTrue("No DNS updates needed" in out, out) try: out = self.check_output("samba_dnsupdate --verbose --use-samba-tool --rpc-server-ip=%s" % self.server_ip) - except samba.tests.BlackboxProcessError: - self.fail("Error calling samba_dnsupdate") + except samba.tests.BlackboxProcessError as e: + self.fail("Error calling samba_dnsupdate: %s" % e) self.assertTrue(" DNS updates and" in out, out) self.assertTrue(" DNS deletes needed" in out, out)