summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 805c707a3f8..16937359639 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -649,14 +649,22 @@ def skipUnlessCompilerRt(func):
"""Decorate the item to skip tests if testing remotely."""
def is_compiler_rt_missing():
compilerRtPath = os.path.join(
- os.path.dirname(__file__),
- "..",
+ os.environ["LLDB_SRC"],
"..",
"..",
"..",
"llvm",
"projects",
"compiler-rt")
+ if not os.path.exists(compilerRtPath):
+ compilerRtPath = os.path.join(
+ os.environ["LLDB_SRC"],
+ "..",
+ "..",
+ "..",
+ "llvm",
+ "runtimes",
+ "compiler-rt")
return "compiler-rt not found" if not os.path.exists(
compilerRtPath) else None
return skipTestIfFn(is_compiler_rt_missing)(func)
OpenPOWER on IntegriCloud