commit 405c2bb5382aa6536eb44886f69bc352c1a90f5a
parent 31dc2083fc6be720a211c10997716cc5a678b696
Author: Mike Conley <mconley@mozilla.com>
Date: Wed, 8 Oct 2025 01:35:31 +0000
Bug 1992667 - Update trainhop jobs to launch xpcshell while loading libraries from the trainhop archive. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D267867
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py
@@ -516,6 +516,11 @@ class MochitestServer:
self._httpdPath = SCRIPT_DIR
self._httpdPath = os.path.abspath(self._httpdPath)
+ if "browser.newtabpage.trainhopAddon.version=any" in options.get(
+ "extraPrefs", []
+ ):
+ self._trainHop = True
+
MochitestServer.instance_count += 1
def start(self):
@@ -529,6 +534,11 @@ class MochitestServer:
else:
env["LD_LIBRARY_PATH"] = ":".join([self._xrePath, env["LD_LIBRARY_PATH"]])
+ if self._trainHop:
+ env["LD_LIBRARY_PATH"] = ":".join(
+ [os.path.join(os.path.dirname(here), "bin"), env["LD_LIBRARY_PATH"]]
+ )
+
# When running with an ASan build, our xpcshell server will also be ASan-enabled,
# thus consuming too much resources when running together with the browser on
# the test machines. Try to limit the amount of resources by disabling certain