diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-18 20:37:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 20:37:20 +0200 |
commit | d6d45003c926ae5587177eab0d195c14d4286126 (patch) | |
tree | 6f4b9b52d8d4d7f49cd7cf7f21e8c03852e510c7 /test/system/250-systemd.bats | |
parent | d4587c6074e4b4e3673cf495f0c4cd2811742791 (diff) | |
parent | cd85ba196d89c6d9ba9a8a2b27dc8bfeca5effb4 (diff) | |
download | podman-d6d45003c926ae5587177eab0d195c14d4286126.tar.gz podman-d6d45003c926ae5587177eab0d195c14d4286126.tar.bz2 podman-d6d45003c926ae5587177eab0d195c14d4286126.zip |
Merge pull request #6232 from edsantiago/bats_cgroupsv1_fixes
system tests: small fixes for rawhide+cgroups v1
Diffstat (limited to 'test/system/250-systemd.bats')
-rw-r--r-- | test/system/250-systemd.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index cdac43c1c..4bee13414 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -33,6 +33,13 @@ function teardown() { # This test can fail in dev. environment because of SELinux. # quick fix: chcon -t container_runtime_exec_t ./bin/podman @test "podman generate - systemd - basic" { + # podman initializes this if unset, but systemctl doesn't + if is_rootless; then + if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR=/run/user/$(id -u) + fi + fi + cname=$(random_string) run_podman create --name $cname --detach $IMAGE top |