File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ FROM quay.io/centos-bootc/centos-bootc:stream10
55
66WORKDIR /bootc-test
77
8- # Some rhts-*, rstrnt-* and tmt-* commands are in /usr/local/bin
9- COPY bin /usr/local/bin
108# Save testing farm run files
119COPY ARTIFACTS /var/ARTIFACTS
1210# Copy bootc repo
@@ -19,8 +17,18 @@ set -xeuo pipefail
1917if [[ $ID == "rhel" ]]; then
2018 cp rhel.repo /etc/yum.repos.d/
2119fi
20+ # OSCI uses /var/lib/tmt/scripts to save tmt-* commands
21+ # Fedora CI and Packit use /usr/local/bin
22+ if [[ -d scripts ]]; then
23+ mkdir -p /var/lib/tmt
24+ cp -r scripts /var/lib/tmt/
25+ else
26+ cp -r bin /usr/local
27+ fi
2228cp test-artifacts.repo /etc/yum.repos.d/
2329dnf -y update bootc
30+ # Required by tmt avc checking after test
31+ dnf -y install audit
2432./provision-derived.sh
2533
2634# For test-22-logically-bound-install
Original file line number Diff line number Diff line change 77 tasks :
88 - name : Reboot system to image mode
99 reboot :
10+ reboot_timeout : 1200
11+ connect_timeout : 30
12+ pre_reboot_delay : 15
1013
1114 - name : Wait for connection to become reachable/usable
1215 wait_for_connection :
Original file line number Diff line number Diff line change @@ -24,13 +24,15 @@ source /etc/os-release
2424# Some rhts-*, rstrnt-* and tmt-* commands are in /usr/local/bin
2525if [[ -d /var/lib/tmt/scripts ]]; then
2626 cp -r /var/lib/tmt/scripts " $BOOTC_TEMPDIR "
27+ ls -al " ${BOOTC_TEMPDIR} /scripts"
2728else
2829 cp -r /usr/local/bin " $BOOTC_TEMPDIR "
30+ ls -al " ${BOOTC_TEMPDIR} /bin"
2931fi
3032
3133# Get base image URL
3234TEST_OS=" ${ID} -${VERSION_ID} "
33- BASE=$( cat os-image-map.json | jq --arg v " $TEST_OS " ' .[$v]' )
35+ BASE=$( jq -r --arg v " $TEST_OS " ' .[$v]' < os-image-map.json )
3436
3537if [[ " $ID " == " rhel" ]]; then
3638 # OSCI gating only
@@ -78,7 +80,7 @@ ls -al /var/share/test-artifacts
7880cp /etc/yum.repos.d/test-artifacts.repo " $BOOTC_TEMPDIR "
7981
8082# Let's check things in hack folder
81- ls -al " $BOOTC_TEMPDIR " " ${BOOTC_TEMPDIR} /bin "
83+ ls -al " $BOOTC_TEMPDIR "
8284
8385# Do not use just because it's only available on Fedora, not on CS and RHEL
8486podman build --jobs=4 --from " $BASE " -v " $BOOTC_TEMPDIR " :/bootc-test:z -t localhost/bootc-integration -f " ${BOOTC_TEMPDIR} /Containerfile.packit" " $BOOTC_TEMPDIR "
You can’t perform that action at this time.
0 commit comments