gating tests: run podman-remote too

A small handful of bugs have blocked us from running podman-remote
in gating tests. Those are all fixed; it's time to enable testing.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2021-09-16 15:15:05 -06:00
parent 52a2adf76a
commit 967f9534f2
3 changed files with 29 additions and 0 deletions

View File

@ -43,10 +43,19 @@ if ! cd $testdir; then
exit 0
fi
if [[ $PODMAN =~ remote ]]; then
${PODMAN%%-remote} system service -t0 &>/dev/null &
PODMAN_SERVER_PID=$!
fi
echo "\$ bats ."
bats .
rc=$?
if [[ -n "$PODMAN_SERVER_PID" ]]; then
kill $PODMAN_SERVER_PID
fi
echo $divider
echo "bats completed with status $rc"

View File

@ -39,6 +39,9 @@
loop_control:
loop_var: want_cgroups
- name: test podman-remote
include_tasks: test_podman_remote.yml
- name: test toolbox
include_tasks: test_toolbox.yml

View File

@ -0,0 +1,17 @@
---
- name: "podman-remote | install"
dnf: name="podman-remote" state=installed
- include_role:
name: run_bats_tests
vars:
tests:
- name: podman-remote root
package: podman
environment:
PODMAN: /usr/bin/podman-remote
- name: podman-remote rootless
package: podman
environment:
PODMAN: /usr/bin/podman-remote
become: true