Commit 66a434b9 authored by Rob Wu's avatar Rob Wu
Browse files

Bug 1641541 - Remove generated SpecialPowers and mochikit addon at end of test r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D77249
parent e690d9da
......@@ -2338,6 +2338,8 @@ toolbar#nav-bar {
self.log.process_start(gecko_id)
self.message_logger.gecko_id = gecko_id
temp_file_paths = []
try:
# start marionette and kick off the tests
marionette_args = marionette_args or {}
......@@ -2354,7 +2356,9 @@ toolbar#nav-bar {
"TEST-UNEXPECTED-FAIL | invalid setup: missing extension at %s" %
addon_path)
return 1, self.lastTestSeen
addons.install(create_zip(addon_path))
temp_addon_path = create_zip(addon_path)
temp_file_paths.append(temp_addon_path)
addons.install(temp_addon_path)
self.execute_start_script()
......@@ -2422,6 +2426,8 @@ toolbar#nav-bar {
# cleanup
if os.path.exists(processLog):
os.remove(processLog)
for p in temp_file_paths:
os.remove(p)
if marionette_exception is not None:
exc, value, tb = marionette_exception
......
Supports Markdown
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