From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- testing/mochitest/runtests.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'testing/mochitest/runtests.py') 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. -- cgit v1.2.3