cockpit-podman/tests/roles/test/tasks/main.yml
Martin Pitt cc22712b48 tests: Adjust for changed browser.sh path
https://github.com/cockpit-project/cockpit-podman/pull/684 moved
browser.sh to a different directory; adjust the test to get along with
both locations until version 30 gets released and packaged.
2021-02-25 14:51:25 +01:00

31 lines
778 B
YAML

---
- name: upgrade critical packages to the latest version
dnf:
name:
- podman
- conmon
state: latest
- include_role:
name: standard-test-source
- include_role:
name: standard-test-basic
vars:
required_packages:
- cockpit-podman
- cockpit-ws
- cockpit-system
- git
- libvirt-python3
- make
- npm
- python3
tests:
- cockpit-podman:
dir: "{{ test_script_dir | default('.') }}/source"
# directory changed after release 29: https://github.com/cockpit-project/cockpit-podman/pull/684
# drop this after packaging 30
run: "if [ -e test/browser/browser.sh ]; then test/browser/browser.sh; else plans/browser.sh; fi"
save-files: ["logs/*"]