diff options
| author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2023-04-14 15:25:50 +0000 |
|---|---|---|
| committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2023-04-14 15:47:55 +0000 |
| commit | 3e5d0784b9b5296bda801add034b057ad68237f7 (patch) | |
| tree | 09c1ac8db59cbdf84d2b457c45ffdca09b1d3bdf /tests/atf_python/utils.py | |
| parent | 2f53b5991ce05b7e6f2b1eb826cd902fb255a9eb (diff) | |
Diffstat (limited to 'tests/atf_python/utils.py')
| -rw-r--r-- | tests/atf_python/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/atf_python/utils.py b/tests/atf_python/utils.py index 591a532ca476..1c0a68dad383 100644 --- a/tests/atf_python/utils.py +++ b/tests/atf_python/utils.py @@ -28,6 +28,11 @@ class LibCWrapper(object): return get_errno() return 0 + def kldload(self, kld_name: str) -> int: + if self._libc.kldload(bytes(kld_name, encoding="ascii")) == -1: + return get_errno() + return 0 + def jail_attach(self, jid: int) -> int: if self._libc.jail_attach(jid) != 0: return get_errno() |
