This revision was automatically updated to reflect the committed changes. Closed by commit rGcd4180dbf90b: [lldb][test] Skip TestRerunAndExprDylib on Ubuntu 18.04 (authored by kastiglione).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D142141/new/ https://reviews.llvm.org/D142141 Files: lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py Index: lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py =================================================================== --- lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py +++ lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py @@ -9,7 +9,24 @@ from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * + +def isUbuntu18_04(): + """ + Check if the host OS is Ubuntu 18.04. + Derived from `platform.freedesktop_os_release` in Python 3.10. + """ + for path in ("/etc/os-release", "/usr/lib/os-release"): + if os.path.exists(path): + with open(path) as f: + contents = f.read() + if "Ubuntu 18.04" in contents: + return True + + return False + + class TestRerunExprDylib(TestBase): + @skipTestIfFn(isUbuntu18_04, bugnumber="rdar://103831050") @skipIfWindows def test(self): """
Index: lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py =================================================================== --- lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py +++ lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py @@ -9,7 +9,24 @@ from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * + +def isUbuntu18_04(): + """ + Check if the host OS is Ubuntu 18.04. + Derived from `platform.freedesktop_os_release` in Python 3.10. + """ + for path in ("/etc/os-release", "/usr/lib/os-release"): + if os.path.exists(path): + with open(path) as f: + contents = f.read() + if "Ubuntu 18.04" in contents: + return True + + return False + + class TestRerunExprDylib(TestBase): + @skipTestIfFn(isUbuntu18_04, bugnumber="rdar://103831050") @skipIfWindows def test(self): """
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits