зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256571 - Allow ConfigureSandbox.run to not include a given file. r=chmanchester
This commit is contained in:
Родитель
9da99bc058
Коммит
f7fa631d45
|
@ -196,10 +196,11 @@ class ConfigureSandbox(dict):
|
|||
|
||||
self._paths.pop(-1)
|
||||
|
||||
def run(self, path):
|
||||
def run(self, path=None):
|
||||
'''Executes the given file within the sandbox, and ensure the overall
|
||||
consistency of the executed script.'''
|
||||
self.include_file(path)
|
||||
if path:
|
||||
self.include_file(path)
|
||||
|
||||
for option in self._options.itervalues():
|
||||
# All options must be referenced by some @depends function
|
||||
|
|
Загрузка…
Ссылка в новой задаче