diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2024-03-13 15:16:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 15:16:15 -0500 |
commit | 8bed754c2f965c8cbbb050be6f650b78f7fd78a6 (patch) | |
tree | 5b084eb2cd9f754097341191e84599a4fad8b946 /lldb/packages/Python/lldbsuite/test/lldbpexpect.py | |
parent | cd8843f87af2f04a85dda12b37738596cbf4cd5e (diff) | |
download | llvm-8bed754c2f965c8cbbb050be6f650b78f7fd78a6.zip llvm-8bed754c2f965c8cbbb050be6f650b78f7fd78a6.tar.gz llvm-8bed754c2f965c8cbbb050be6f650b78f7fd78a6.tar.bz2 |
[lldb][test] Add `pexpect` category for tests that `import pexpect` (#84860)
Instead of directly annotating pexpect-based tests with
`@skipIfWindows`, we can tag them with a new `pexpect` category. We
still automatically skip windows behavior by adding `pexpect` to the
skip category list if the platform is windows, but also allow
non-Windows users to skip them by configuring cmake with
`-DLLDB_TEST_USER_ARGS=--skip-category=pexpect`
As a prerequisite, remove the restriction that `@add_test_categories`
can only apply to test cases, and we make the test runner look for
categories on both the class and the test method.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbpexpect.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbpexpect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py index 9d216d9..998a080 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py +++ b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py @@ -10,7 +10,7 @@ from lldbsuite.test.decorators import * @skipIfRemote -@skipIfWindows # llvm.org/pr22274: need a pexpect replacement for windows +@add_test_categories(["pexpect"]) class PExpectTest(TestBase): NO_DEBUG_INFO_TESTCASE = True PROMPT = "(lldb) " |