From 642a691cbba407edbbcdfb287a47224bad779ec4 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 26 Jan 2022 13:05:50 -0500 Subject: Cirrus: Add netavark/aardvark system test task Also add a system-test that verifies netavark driver is in use when magic env. var. is set. Signed-off-by: Chris Evich --- test/system/helpers.bash | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/system/helpers.bash') diff --git a/test/system/helpers.bash b/test/system/helpers.bash index 36a88fc10..c622a5172 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -341,6 +341,15 @@ function is_cgroupsv2() { test "$cgroup_type" = "cgroup2fs" } +# True if podman is using netavark +function is_netavark() { + run_podman info --format '{{.Host.NetworkBackend}}' + if [[ "$output" =~ netavark ]]; then + return 0 + fi + return 1 +} + # Returns the OCI runtime *basename* (typically crun or runc). Much as we'd # love to cache this result, we probably shouldn't. function podman_runtime() { -- cgit v1.2.3-54-g00ecf