From: Alex Langford Date: Wed, 6 Nov 2019 23:12:31 +0000 (-0800) Subject: [test] Fix apple_simulator_test decorator when simulators are unavailable X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6b5daa701d3a276ace90c688f913b96d396bed1;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index 2816cb7..10f5232 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)