diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-03 15:37:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 15:37:19 -0500 |
commit | 608b6142edb7a4e179ce6d2ae69707be28f29359 (patch) | |
tree | 1ea61cd58e852d849fc5941c0827e6f1ad34727f /test/system/helpers.bash | |
parent | e1ed5a9d9c8181075011634191cde183d07ae99a (diff) | |
parent | 642a691cbba407edbbcdfb287a47224bad779ec4 (diff) | |
download | podman-608b6142edb7a4e179ce6d2ae69707be28f29359.tar.gz podman-608b6142edb7a4e179ce6d2ae69707be28f29359.tar.bz2 podman-608b6142edb7a4e179ce6d2ae69707be28f29359.zip |
Merge pull request #13024 from cevich/netavark_system
Cirrus: Add netavark/aardvark system test task
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r-- | test/system/helpers.bash | 9 |
1 files changed, 9 insertions, 0 deletions
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() { |