diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-08-02 18:38:33 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-08-11 07:10:38 +0200 |
commit | 732b5a783f6bf998dcdc9e1d7f782830018adf45 (patch) | |
tree | 6f72b913fc1e4e8514d76e380d8cd488dde8cabf /python | |
parent | f29471f8121dda055ea88dace9ef0748ec16e46c (diff) | |
download | samba-732b5a783f6bf998dcdc9e1d7f782830018adf45.tar.gz |
tests:blackbox: let samba_dnsupdate.py provide more details
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12108
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit dcdef0082a190dd9ed0b365c9103429a3a75adc3)
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/blackbox/samba_dnsupdate.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |