diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /testing/mochitest/runtests.py | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mochitest/runtests.py')
-rw-r--r-- | testing/mochitest/runtests.py | 12 |
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. |