commit 7521935d665f55b7531162d5b633781f7f10c244
parent 675cd4b2118f4d56cf7f4fc9d0fa5e84d4ee2061
Author: Alex Franchuk <afranchuk@mozilla.com>
Date: Wed, 29 Oct 2025 01:47:20 +0000
Bug 1996752 - Check for all debug arguments to determine if we are debugging r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D270325
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
@@ -1089,7 +1089,9 @@ def gtest(
if list_tests:
args.append("--gtest_list_tests")
- if debug or debugger or debugger_args:
+ is_debugging = debug or debugger or debugger_args
+
+ if is_debugging:
args = _prepend_debugger_args(args, debugger, debugger_args)
if not args:
return 1
@@ -1152,7 +1154,7 @@ def gtest(
# - listing tests
# - running the debugger
# - combining suites with one job
- if list_tests or debug or (combine_suites and jobs == 1):
+ if list_tests or is_debugging or (combine_suites and jobs == 1):
return command_context.run_process(
args=args,
append_env=gtest_env,