commit 230fbdd74a34539780cac6600a5fa5a45d290a87
parent d322e7b2cab8f126487317dee907cd03437f3201
Author: Ben Chatterton <bchatterton@mozilla.com>
Date: Thu, 20 Nov 2025 18:11:22 +0000
Bug 2001371: Fix update-test locale always set to en-US r=aaronmt,rconcepcion
Differential Revision: https://phabricator.services.mozilla.com/D273434
Diffstat:
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/testing/update/mach_commands.py b/testing/update/mach_commands.py
@@ -318,6 +318,17 @@ def build(command_context, binary_path, **kwargs):
# TODO: update tests to check against config version, not update server resp
# kwargs["to_display_version"] = uv_config.to_display_version
+ if kwargs.get("source_locale"):
+ config.locale = kwargs["source_locale"]
+
+ if kwargs.get("source_versions_back"):
+ config.source_version_position = -int(kwargs["source_versions_back"])
+
+ if kwargs.get("source_version"):
+ config.source_version = kwargs["source_version"]
+ else:
+ config.source_version = None
+
config.set_ftp_info()
tempdir = tempfile.TemporaryDirectory()
@@ -347,17 +358,6 @@ def build(command_context, binary_path, **kwargs):
logging.ERROR("Invalid test type")
sys.exit(1)
- if kwargs.get("source_locale"):
- config.locale = kwargs["source_locale"]
-
- if kwargs.get("source_versions_back"):
- config.source_version_position = -int(kwargs["source_versions_back"])
-
- if kwargs.get("source_version"):
- config.source_version = kwargs["source_version"]
- else:
- config.source_version = None
-
config.dir = command_context.topsrcdir
if mozinfo.os == "win":