Commit 8f45ebf4 authored by Aurel's avatar Aurel

exit browser also when failing

parent 719437d5
......@@ -87,8 +87,6 @@ def main():
'html_test_result': elt.find_element_by_tag_name('ol').get_attribute('innerHTML')
}
browser.quit()
tool = taskdistribution.TaskDistributionTool(portal_url=args.master_url)
test_result = tool.createTestResult(revision = revision,
test_name_list = test_line_dict.keys(),
......@@ -119,5 +117,8 @@ def main():
# XXX: inform test node master of error
raise EnvironmentError(result)
finally:
browser.quit()
if __name__ == "__main__":
main()
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment