Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/linux_kernel: Skip TestStackDepot unless test kmod is present #413

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

sourabhjains
Copy link
Contributor

TestStackDeport needs the drgn test kernel module, so if it is not present, skip the test.

Error reported:

ERROR: setUpClass (tests.linux_kernel.helpers.test_stackdepot.TestStackDepot)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/drgn/tests/linux_kernel/helpers/test_stackdepot.py", line 15, in setUpClass
    if not cls.prog["drgn_test_have_stackdepot"]:
KeyError: 'drgn_test_have_stackdepot'

----------------------------------------------------------------------
Ran 980 tests in 4.056s

TestStackDeport needs the drgn test kernel module, so if it is not
present, skip the test.

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
@osandov osandov merged commit c6efb6e into osandov:main Jul 12, 2024
32 checks passed
@osandov
Copy link
Owner

osandov commented Jul 12, 2024

Good catch, thank you.

@sourabhjains
Copy link
Contributor Author

Thanks for accepting the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants