@@ -2,16 +2,32 @@ provision:
2
2
how: virtual
3
3
image: $@{test_disk_image}
4
4
prepare:
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
6
19
- how: shell
7
20
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
10
25
# tmt-reboot and reboot do not work in this case
11
26
# reboot in ansible is the only way to reboot in tmt prepare
12
27
- how: ansible
13
28
playbook:
14
29
- https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml
30
+ when: running_env != image_mode
15
31
execute:
16
32
how: tmt
17
33
@@ -71,7 +87,7 @@ execute:
71
87
test:
72
88
- /tmt/tests/test-26-examples-build
73
89
adjust:
74
- - when: running_env == packit
90
+ - when: running_env != image_mode
75
91
enabled: false
76
92
because: packit tests use RPM bootc and does not install /usr/lib/bootc/initramfs-setup
77
93
@@ -82,6 +98,6 @@ execute:
82
98
test:
83
99
- /tmt/tests/test-27-custom-selinux-policy
84
100
adjust:
85
- - when: running_env == packit
101
+ - when: running_env != image_mode
86
102
enabled: false
87
103
because: tmt-reboot does not work with systemd reboot in testing farm environment
0 commit comments