[lldb] Fix should_skip_simulator_test decorator

Currently simulator tests get skipped when the reported platform is
macosx rather than darwin. Update the decorator to match both.
This commit is contained in:
Jonas Devlieghere 2022-05-23 09:07:54 -07:00
parent 210c4e7fc8
commit c30a8c8083
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 2 additions and 2 deletions

View File

@ -378,8 +378,8 @@ def apple_simulator_test(platform):
The SDK identifiers for simulators are iphonesimulator, appletvsimulator, watchsimulator
"""
def should_skip_simulator_test():
if lldbplatformutil.getHostPlatform() != 'darwin':
return "simulator tests are run only on darwin hosts"
if lldbplatformutil.getHostPlatform() not in ['darwin', 'macosx']:
return "simulator tests are run only on darwin hosts."
try:
DEVNULL = open(os.devnull, 'w')
output = subprocess.check_output(["xcodebuild", "-showsdks"], stderr=DEVNULL).decode("utf-8")