commit c8451d8925313ebee8b037bb99207590bde1e69a parent e78e66765016cef78a09d25db9351b8375d7e928 Author: Florian Quèze <florian@queze.net> Date: Wed, 1 Oct 2025 09:30:08 +0000 Bug 1991768 - use single file mode for xpcshell tests listed in multiple manifests but skipped in all but one, r=jmaher. Differential Revision: https://phabricator.services.mozilla.com/D266903 Diffstat:
| M | testing/xpcshell/runxpcshelltests.py | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py @@ -1222,8 +1222,10 @@ class XPCShellTests: ) sys.exit(1) - if len(self.alltests) == 1 and not verify: - self.singleFile = os.path.basename(self.alltests[0]["path"]) + # Count non-disabled tests for --profiler validation + enabled_tests = [t for t in self.alltests if "disabled" not in t] + if len(enabled_tests) == 1 and not verify: + self.singleFile = os.path.basename(enabled_tests[0]["path"]) else: self.singleFile = None