forked from OSchip/llvm-project
[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:
parent
cfca0056f0
commit
a6b5daa701
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue