Bug 1415379 - Add the entire _tests directory to the sandbox whitelist. r=ahal,Alex_Gaynor

mochitests needs access to TESTING_JS_MODULES which are installed in $(OBJDIR)\_tests\modules\

MozReview-Commit-ID: CMgDlj4uKeP

--HG--
extra : rebase_source : 0a32b71db56bd68fc369d58117075dabf0465727
This commit is contained in:
Matthew Noorenberghe 2017-11-13 13:37:41 -08:00
Родитель 873f611a48
Коммит beb2979a44
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1832,7 +1832,9 @@ toolbar#nav-bar {
'5.1' in platform.version() and options.e10s:
prefs['layers.acceleration.disabled'] = True
sandbox_whitelist_paths = [SCRIPT_DIR] + options.sandboxReadWhitelist
# Whitelist the _tests directory (../..) so that TESTING_JS_MODULES work
tests_dir = os.path.dirname(os.path.dirname(SCRIPT_DIR))
sandbox_whitelist_paths = [tests_dir] + options.sandboxReadWhitelist
if (platform.system() == "Linux" or
platform.system() in ("Windows", "Microsoft")):
# Trailing slashes are needed to indicate directories on Linux and Windows