From beb2979a44a600552dea191262ad906470b38735 Mon Sep 17 00:00:00 2001 From: Matthew Noorenberghe Date: Mon, 13 Nov 2017 13:37:41 -0800 Subject: [PATCH] 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 --- testing/mochitest/runtests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py index ecc2becd4b92..66afce8c1d4c 100644 --- a/testing/mochitest/runtests.py +++ b/testing/mochitest/runtests.py @@ -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