9def1dd905
- instead of hacky mkdir /run/user/<fedora id>, use loginctl enable-linger and hope that it has the same effect. reason: the mkdir doesn't seem to be 100% effective. There are cases in which the first rootless podman invocation fails with: Error: could not get runtime: cannot mkdir /run/user/1000/libpod: mkdir /run/user/1000/libpod: no such file or directory Signed-off-by: Ed Santiago <santiago@redhat.com>
23 lines
596 B
YAML
23 lines
596 B
YAML
---
|
|
- hosts: localhost
|
|
roles:
|
|
- role: standard-test-basic
|
|
tags:
|
|
- classic
|
|
- container
|
|
required_packages:
|
|
- bats
|
|
- podman
|
|
- podman-tests
|
|
tests:
|
|
- root-test:
|
|
dir: ./
|
|
run: ./test_podman.sh
|
|
timeout: 15m
|
|
- rootless-test:
|
|
# running the test with su doesn't create the directory for fedora user on /run/user/
|
|
# so create it manually
|
|
dir: ./
|
|
run: loginctl enable-linger fedora; su -c ${PWD}/test_podman.sh - fedora
|
|
timeout: 15m
|