Gating tests: run toolbox tests

Successful on rawhide as of toolbox-0.0.99.2^3.git075b9a8d2779-7.fc36
on 2021-09-13.

See: https://github.com/containers/podman/issues/10296

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2021-08-10 14:31:39 -06:00
parent 3140e523af
commit c461125d7c
3 changed files with 21 additions and 0 deletions

View File

@ -4,3 +4,11 @@
- name: rootless account | enable linger - name: rootless account | enable linger
shell: loginctl enable-linger {{ rootless_user }} shell: loginctl enable-linger {{ rootless_user }}
- name: rootless account | get uid
getent:
database: passwd
key: "{{ rootless_user }}"
- name: rootless account | preserve uid
set_fact: rootless_uid="{{ getent_passwd[rootless_user][1] }}"

View File

@ -39,6 +39,9 @@
loop_control: loop_control:
loop_var: want_cgroups loop_var: want_cgroups
- name: test toolbox
include_tasks: test_toolbox.yml
# Postprocessing: check for FAIL or ERROR in any test, exit 1 if so # Postprocessing: check for FAIL or ERROR in any test, exit 1 if so
- name: check results - name: check results
include_tasks: check_results.yml include_tasks: check_results.yml

10
tests/test_toolbox.yml Normal file
View File

@ -0,0 +1,10 @@
---
- include_role:
name: run_bats_tests
vars:
tests:
- name: toolbox
package: toolbox
become: true
environment:
XDG_RUNTIME_DIR: /run/user/{{ rootless_uid }}