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:
2
.cargo/config.toml
Normal file
2
.cargo/config.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[target.'cfg(linux)']
|
||||
runner = 'unshare -rn'
|
||||
Reference in New Issue
Block a user