Change this so we catch the case where the capnp shared libs have been updated, and can no-longer be loaded by the Python module, resulting in a skipped test, even though pycapnp is installed. i.e:
0stderr:
1Traceback (most recent call last):
2 File "/root/ci_scratch/build/test/functional/interface_ipc.py", line 20, in <module>
3 import capnp # type: ignore[import] # noqa: F401
4 ^^^^^^^^^^^^
5 File "/usr/local/lib64/python3.14/site-packages/capnp/__init__.py", line 36, in <module>
6 from .version import version as __version__
7 File "/usr/local/lib64/python3.14/site-packages/capnp/version.py", line 1, in <module>
8 from .lib.capnp import _CAPNP_VERSION_MAJOR as LIBCAPNP_VERSION_MAJOR # noqa: F401
9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10ImportError: libcapnpc.so.1.0.1: cannot open shared object file: No such file or directory
Failing in this way should make it clear that pycapnp needs to be reinstalled/rebuilt.
If pycapnp is not installed, the test still skips as expected:
0Remaining jobs: [interface_ipc.py]
11/1 - interface_ipc.py skipped (capnp module not available.)
2
3TEST | STATUS | DURATION
4
5interface_ipc.py | ○ Skipped | 0 s
Fixes: #34016.