From 9554ac305239c7baea02d112d2da72b7a97fce41 Mon Sep 17 00:00:00 2001 From: Matteo Croce Date: Wed, 25 Jun 2025 14:42:48 +0200 Subject: [PATCH] tests: run test with CAP_BPF Add CAP_BPF to tests run with nspawn, so we don't have to use a VM to test BPF calls. --- test/integration-tests/integration-test-wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration-tests/integration-test-wrapper.py b/test/integration-tests/integration-test-wrapper.py index c3b8dbf77e7..99fc420e9a9 100755 --- a/test/integration-tests/integration-test-wrapper.py +++ b/test/integration-tests/integration-test-wrapper.py @@ -617,6 +617,8 @@ def main() -> None: '--credential', f"journal.storage={'persistent' if sys.stdin.isatty() else args.storage}", *(['--runtime-build-sources=no', '--register=no'] if not sys.stdin.isatty() else []), 'vm' if args.vm or os.getuid() != 0 or os.getenv('TEST_PREFER_QEMU', '0') == '1' else 'boot', + *(['--', '--capability=CAP_BPF'] \ + if not args.vm and os.getenv('TEST_PREFER_QEMU', '0') == '0' else []), ] # fmt: skip try: -- 2.47.3