
Pick the builder for the target platform, not the host platform. This is necessary when running the test suite remotely on a different platform. Unlike for Darwin, both Windows and Linux us the default builder, which is why this went unnoticed on the remote-linux bots.
27 lines
591 B
Python
27 lines
591 B
Python
"""
|
|
This module builds test binaries for the test suite using Make.
|
|
|
|
Platform specific builders can override methods in the Builder base class. The
|
|
factory method below hands out builders based on the given platform.
|
|
"""
|
|
|
|
|
|
def get_builder(platform):
|
|
"""Returns a Builder instance for the given platform."""
|
|
if platform in [
|
|
"bridgeos",
|
|
"darwin",
|
|
"ios",
|
|
"macosx",
|
|
"tvos",
|
|
"watchos",
|
|
"xros",
|
|
]:
|
|
from .darwin import BuilderDarwin
|
|
|
|
return BuilderDarwin()
|
|
|
|
from .builder import Builder
|
|
|
|
return Builder()
|