1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 06:45:56 +01:00

add .cargo/config.toml to runs tests via unshare -rn

Out test don't actually need root, we only care about the ability to
create a private netns in src/test/netlink.rs. This can be done via a
user namespace as well. So configure cargo to run the tests via
unshare -rn which creates a private userns and netns. That way devs can
run cargo test rootless on the system.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-07-18 17:26:42 +02:00
parent aa410854ee
commit c984a9fdad

2
.cargo/config.toml Normal file
View File

@@ -0,0 +1,2 @@
[target.'cfg(linux)']
runner = 'unshare -rn'