summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2019-11-06 15:12:31 -0800
committerAlex Langford <apl@fb.com>2019-11-06 15:14:01 -0800
commita6b5daa701d3a276ace90c688f913b96d396bed1 (patch)
treed74a852217e940c6b0886d634476a0e5fae2d689
parentcfca0056f054602dd46d1224c63d2275a4ecd90f (diff)
downloadbcm5719-llvm-a6b5daa701d3a276ace90c688f913b96d396bed1.tar.gz
bcm5719-llvm-a6b5daa701d3a276ace90c688f913b96d396bed1.zip
[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.
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 2816cb7e39a..10f52325875 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -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)
OpenPOWER on IntegriCloud