From 32c744ae339dc356060636bcdf75a5e2a67fca00 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 8 Nov 2024 17:44:51 +0400 Subject: [PATCH] [lldb] Fixed the @skipUnlessAArch64MTELinuxCompiler decorator (#115480) It is broken after #115337 https://lab.llvm.org/buildbot/#/builders/195/builds/794 --- lldb/packages/Python/lldbsuite/test/decorators.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index 0bb9ab9f5f89..c48c0b2f7794 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -997,7 +997,10 @@ def skipUnlessAArch64MTELinuxCompiler(func): f.close() cmd = f"{compiler_path} -x c -o {f.name} -" - if subprocess.run(cmd, input="int main() {}".encode()).returncode != 0: + if ( + subprocess.run(cmd, shell=True, input="int main() {}".encode()).returncode + != 0 + ): os.remove(f.name) # Cannot compile at all, don't skip the test # so that we report the broken compiler normally. @@ -1014,7 +1017,7 @@ def skipUnlessAArch64MTELinuxCompiler(func): void* ptr = __arm_mte_create_random_tag((void*)(0), 0); }""" cmd = f"{compiler_path} -march=armv8.5-a+memtag -x c -o {f.name} -" - res = subprocess.run(cmd, input=test_src.encode()) + res = subprocess.run(cmd, shell=True, input=test_src.encode()) os.remove(f.name) if res.returncode != 0: return "Toolchain does not support MTE"