summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mochitest/runtests.py')
-rw-r--r--testing/mochitest/runtests.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py
index 912ed01af6..4776ae2276 100644
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -60,9 +60,11 @@ try:
from marionette_driver.addons import Addons
from marionette_driver.marionette import Marionette
except ImportError as e: # noqa
+ error = e
+
# Defer ImportError until attempt to use Marionette
def reraise(*args, **kwargs):
- raise (e) # noqa
+ raise error # noqa
Marionette = reraise
@@ -2407,14 +2409,14 @@ toolbar#nav-bar {
# 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
+ sandbox_allowlist_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
- sandbox_whitelist_paths = [
- os.path.join(p, "") for p in sandbox_whitelist_paths
+ sandbox_allowlist_paths = [
+ os.path.join(p, "") for p in sandbox_allowlist_paths
]
if options.conditionedProfile:
@@ -2437,7 +2439,7 @@ toolbar#nav-bar {
addons=extensions,
locations=self.locations,
proxy=self.proxy(options),
- whitelistpaths=sandbox_whitelist_paths,
+ allowlistpaths=sandbox_allowlist_paths,
)
# Fix options.profilePath for legacy consumers.