Bug 1412356 - Invoke `mach build` for multi locale builds; r?build
This should be functionally identical to `make -f client.mk`.
MozReview-Commit-ID: GfKHtezLBNL
--- a/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py
+++ b/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py
@@ -122,19 +122,20 @@ class MultiLocaleBuild(LocalesMixin, Mer
# pull_locale_source() defined in LocalesMixin.
def build(self):
c = self.config
dirs = self.query_abs_dirs()
self.copyfile(os.path.join(dirs['abs_work_dir'], c['mozconfig']),
os.path.join(dirs['abs_mozilla_dir'], 'mozconfig'),
error_level=FATAL)
- command = "make -f client.mk build"
+
+ mach = os.path.join(dirs['abs_mozilla_dir'], 'mach')
env = self.query_env()
- if self._process_command(command=command,
+ if self._process_command(command=[sys.executable, mach, 'build'],
cwd=dirs['abs_mozilla_dir'],
env=env, error_list=MakefileErrorList):
self.fatal("Erroring out after the build failed.")
def add_locales(self):
c = self.config
dirs = self.query_abs_dirs()
locales = self.query_locales()