commit 89fb98b5ec4ee9f5276f5369ab4efa5c01f864f1
parent 1d896cc495ce8a9d0e143c6a64d3adb58c2494fd
Author: Florian Quèze <florian@queze.net>
Date: Tue, 21 Oct 2025 20:35:27 +0000
Bug 1995593 - don't upload crash dumps from self tests, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D269435
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py
@@ -366,8 +366,16 @@ class XPCShellTestThread(Thread):
On a remote system, this is more complex and we need to overload this function.
"""
quiet = self.crashAsPass or self.retry
+ # For selftests, set dump_save_path to prevent crash dumps from being saved
+ # (they intentionally crash and the dumps aren't useful artifacts)
+ dump_save_path = "" if self.selfTest else None
return mozcrash.log_crashes(
- self.log, dump_directory, symbols_path, test=test_name, quiet=quiet
+ self.log,
+ dump_directory,
+ symbols_path,
+ test=test_name,
+ quiet=quiet,
+ dump_save_path=dump_save_path,
)
def logCommand(self, name, completeCmd, testdir):