@@ -2,16 +2,32 @@ provision:
22 how: virtual
33 image: $@{test_disk_image}
44prepare:
5- # Replace package mode with image mode
5+ # Install image mode system on package mode system
6+ # Do not run on image mode VM running on Github CI and Locally
7+ # Run on package mode VM running on Packit and Gating
8+ - how: install
9+ package:
10+ - podman
11+ - skopeo
12+ - jq
13+ - bootc
14+ - system-reinstall-bootc
15+ - expect
16+ - ansible-core
17+ - zstd
18+ when: running_env != image_mode
619 - how: shell
720 script:
8- - pwd && ls -al
9- - if [[ -d hack ]]; then cd hack && ./provision-packit.sh; fi
21+ - mkdir -p bootc && cp /var/share/test-artifacts/*.src.rpm bootc
22+ - cd bootc && rpm2cpio *.src.rpm | cpio -idmv && rm -f *-vendor.tar.zstd && zstd -d *.tar.zstd && tar -xvf *.tar -C . --strip-components=1 && ls -al
23+ - pwd && ls -al && cd bootc/hack && ./provision-packit.sh
24+ when: running_env != image_mode
1025 # tmt-reboot and reboot do not work in this case
1126 # reboot in ansible is the only way to reboot in tmt prepare
1227 - how: ansible
1328 playbook:
1429 - https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml
30+ when: running_env != image_mode
1531execute:
1632 how: tmt
1733
@@ -71,7 +87,7 @@ execute:
7187 test:
7288 - /tmt/tests/test-26-examples-build
7389 adjust:
74- - when: running_env == packit
90+ - when: running_env != image_mode
7591 enabled: false
7692 because: packit tests use RPM bootc and does not install /usr/lib/bootc/initramfs-setup
7793
@@ -82,6 +98,6 @@ execute:
8298 test:
8399 - /tmt/tests/test-27-custom-selinux-policy
84100 adjust:
85- - when: running_env == packit
101+ - when: running_env != image_mode
86102 enabled: false
87103 because: tmt-reboot does not work with systemd reboot in testing farm environment
0 commit comments