pods.bats: force usage of the system bus
@@ -336,7 +336,9 @@ function teardown() {
@test "kubernetes pod terminationGracePeriod passthru" {
[ -v CIRCLECI ] && skip "runc v1.0.0-rc11 required" # TODO remove this
- CONTAINER_CGROUP_MANAGER="systemd" start_crio
+ # Make sure there is no XDG_RUNTIME_DIR set, otherwise the test might end up using the user instance.
+ # There is an assumption in the test to use the system instance of systemd (systemctl show).
+ CONTAINER_CGROUP_MANAGER="systemd" DBUS_SESSION_BUS_ADDRESS="" XDG_RUNTIME_DIR="" start_crio
config=$(cat "$TESTDATA"/sandbox_config.json | python -c 'import json,sys;obj=json.load(sys.stdin);del obj["linux"]["cgroup_parent"]; json.dump(obj, sys.stdout)')
echo "$config" > "$TESTDIR"/sandbox_config-systemd.json
