MCPcopy Create free account
hub / github.com/apache/impala / validate_build_flags

Method validate_build_flags

tests/common/environ.py:222–231  ·  view source on GitHub ↗

Validates that the build flags have valid values.

(cls, build_type, library_link_type)

Source from the content-addressed store, hash-verified

220
221 @classmethod
222 def validate_build_flags(cls, build_type, library_link_type):
223 """
224 Validates that the build flags have valid values.
225 """
226 if build_type not in ImpalaBuildFlavors.VALID_BUILD_TYPES:
227 raise Exception("Unknown build type {0}".format(build_type))
228 if library_link_type not in LinkTypes.VALID_LINK_TYPES:
229 raise Exception("Unknown library link type {0}".format(library_link_type))
230 LOG.debug("Build type detected: %s", build_type)
231 LOG.debug("Library link type detected: %s", library_link_type)
232
233 @classmethod
234 def get_build_flags_from_web_ui(cls, impala_url):

Callers 2

detect_using_web_uiMethod · 0.80

Calls 2

formatMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected