Skip to content
Snippets Groups Projects
Commit 25495d1e authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent de039aa0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment