mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
bug 1188813 - Add clean-up when make node_modules fails before retry. a=test-only
This commit is contained in:
parent
bed6e0e5e8
commit
0ae9e6346b
@ -1,4 +1,4 @@
|
||||
{
|
||||
"repo": "https://hg.mozilla.org/build/mozharness",
|
||||
"revision": "d72df953784c"
|
||||
"revision": "9e3b69e89620"
|
||||
}
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user