[test] Fix apple_simulator_test decorator when simulators are unavailable

In the case where xcodebuild fails as you set up simulator tests, you
would fail because `feature` is never defined.
This commit is contained in:
Alex Langford 2019-11-06 15:12:31 -08:00
parent cfca0056f0
commit a6b5daa701
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ def apple_simulator_test(platform):
else:
return "%s simulator is not supported on this system." % platform
except subprocess.CalledProcessError:
return "%s is not supported on this system (xcodebuild failed)." % feature
return "Simulators are unsupported on this system (xcodebuild failed)"
return skipTestIfFn(should_skip_simulator_test)