Skip to content

Commit 2a1569f

Browse files
committed
tests: Update tests_default.yml to do bootc end-to-end validation
Update tests_default.yml to build a QEMU deployment during bootc container runs after running the setup role. Skip setup/cleanup/role invocation during the QEMU validation run.
1 parent fc81533 commit 2a1569f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/tests_default.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@
88
block:
99
- name: Test setup
1010
include_tasks: tasks/setup.yml
11+
when: not __bootc_validation | d(false)
1112

1213
- name: Run the role
1314
include_role:
1415
name: linux-system-roles.sudo
1516
vars:
1617
sudo_check_if_configured: false
18+
when: not __bootc_validation | d(false)
19+
20+
- name: Create QEMU deployment during bootc end-to-end test
21+
delegate_to: localhost
22+
command: "{{ lsr_scriptdir }}/bootc-buildah-qcow.sh {{ ansible_host }}"
23+
changed_when: true
24+
when: ansible_connection == "buildah"
1725

1826
- name: Check header for ansible_managed, fingerprint
1927
include_tasks: tasks/check_present_header.yml
@@ -24,3 +32,4 @@
2432
always:
2533
- name: Test cleanup
2634
include_tasks: tasks/cleanup.yml
35+
when: not __bootc_validation | d(false)

0 commit comments

Comments
 (0)