MCPcopy
hub / github.com/google/clusterfuzz / platform

Function platform

src/clusterfuzz/_internal/system/environment.py:805–818  ·  view source on GitHub ↗

Return the operating system type, unless an override is provided.

()

Source from the content-addressed store, hash-verified

803
804
805def platform():
806 """Return the operating system type, unless an override is provided."""
807 environment_override = get_value('OS_OVERRIDE')
808 if environment_override:
809 return environment_override.upper()
810
811 if sys.platform.startswith('win'):
812 return 'WINDOWS'
813 if sys.platform.startswith('linux'):
814 return 'LINUX'
815 if sys.platform == 'darwin':
816 return 'MAC'
817
818 raise ValueError('Unsupported platform "%s".' % sys.platform)
819
820
821def remove_key(key_name):

Callers 10

get_platform_idFunction · 0.85
get_platform_groupFunction · 0.85
get_executable_filenameFunction · 0.85
set_bot_environmentFunction · 0.85
is_androidFunction · 0.85
is_android_autoFunction · 0.85
is_android_cuttlefishFunction · 0.85
is_android_real_deviceFunction · 0.85

Calls 1

get_valueFunction · 0.70

Tested by

no test coverage detected