bug 1188813 - Add clean-up when make node_modules fails before retry. a=test-only

This commit is contained in:
Aus Lacroix 2015-08-04 13:31:30 -07:00
parent bed6e0e5e8
commit 0ae9e6346b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{
"repo": "https://hg.mozilla.org/build/mozharness",
"revision": "d72df953784c"
"revision": "9e3b69e89620"
}

View File

@ -381,7 +381,7 @@ class GaiaMixin(object):
'error_list': self.npm_error_list
}
code = self.retry(self.run_command, attempts=3, good_statuses=(0,),
args=[cmd, dirs['abs_gaia_dir']], kwargs=kwargs)
args=[cmd, dirs['abs_gaia_dir']], cleanup=cleanup_node_modules, kwargs=kwargs)
if code:
# Dump npm-debug.log, if it exists
npm_debug = os.path.join(dirs['abs_gaia_dir'], 'npm-debug.log')