diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-01-12 21:15:30 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-01-12 21:18:15 +0100 |
commit | 194d14ca2fd78e0e7f390adafd7774b6e848bb25 (patch) | |
tree | c3fdeafbd5bf425de310f4f59281f2323e8e682f /test/system/250-systemd.bats | |
parent | 3f0661639c3ef3b18e4437f00075352df0af6cee (diff) | |
download | podman-194d14ca2fd78e0e7f390adafd7774b6e848bb25.tar.gz podman-194d14ca2fd78e0e7f390adafd7774b6e848bb25.tar.bz2 podman-194d14ca2fd78e0e7f390adafd7774b6e848bb25.zip |
libpod: fix check for systemd session
move the check after the cgroup manager is set, so to correctly detect
--cgroup-manager=cgroupfs and do not raise a warning about dbus not
being present.
Closes: https://github.com/containers/podman/issues/12802
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/system/250-systemd.bats')
-rw-r--r-- | test/system/250-systemd.bats | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index c49727cc9..c47679904 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -276,4 +276,9 @@ LISTEN_FDNAMES=listen_fdnames" | sort) is "$output" ".*--template cannot be set" "Error message should be '--template requires --new'" } +@test "podman --cgroup=cgroupfs doesn't show systemd warning" { + DBUS_SESSION_BUS_ADDRESS= run_podman --log-level warning --cgroup-manager=cgroupfs info -f '' + is "$output" "" "output should be empty" +} + # vim: filetype=sh |