Refactor platform-related calls to PlatformFactory.from_env

This commit is contained in:
Ivan Kravets
2023-07-12 18:28:20 +03:00
parent 39b61d50e6
commit db8f027f30
12 changed files with 57 additions and 56 deletions
+5 -5
View File
@@ -72,8 +72,8 @@ class EnvironmentProcessor:
# pre-clean
if is_clean:
result = PlatformFactory.new(
self.options["platform"], autoinstall=True
result = PlatformFactory.from_env(
self.name, targets=self.targets, autoinstall=True
).run(build_vars, self.targets, self.silent, self.verbose, self.jobs)
if not build_targets:
return result["returncode"] == 0
@@ -85,7 +85,7 @@ class EnvironmentProcessor:
"piotest_running_name": build_vars.get("piotest_running_name"),
},
)
result = PlatformFactory.new(self.options["platform"], autoinstall=True).run(
build_vars, build_targets, self.silent, self.verbose, self.jobs
)
result = PlatformFactory.from_env(
self.name, targets=build_targets, autoinstall=True
).run(build_vars, build_targets, self.silent, self.verbose, self.jobs)
return result["returncode"] == 0