ipaserver_test: Do not show traceback in case of testing failures

ipaserver_test was not handling possible exceptions in the tests which
resulted in a traceback. This has been fixed.
This commit is contained in:
Thomas Woerner
2019-04-04 14:51:54 +02:00
parent de039aa0c8
commit 25495d1e40

View File

@@ -727,6 +727,9 @@ def main():
if options.setup_adtrust:
adtrust.install_check(False, options, api)
except (RuntimeError, ValueError, ScriptError) as e:
module.fail_json(msg=str(e))
finally:
try:
shutil.rmtree(ipa_tempdir, ignore_errors=True)