File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 2424 - name : Build bootc and bootc image
2525 env :
2626 TEST_OS : ${{ matrix.test_os }}
27- run : tests/build.sh
27+ run : sudo -E TEST_OS=$TEST_OS tests/build.sh
28+
29+ - name : Grant sudo user permission for archived files
30+ run : |
31+ if test -n "${SUDO_UID}" then;
32+ chown -R -h "${SUDO_UID}" /tmp/tmp-bootc-build/disk.raw
33+ chown -R -h "${SUDO_UID}" /tmp/tmp-bootc-build/id_rsa
34+ fi
2835
2936 - name : Archive bootc disk image - disk.raw
3037 uses : actions/upload-artifact@v4
7683 - name : Run test
7784 env :
7885 TMT_PLAN_NAME : ${{ matrix.tmt_plan }}
79- run : chmod 600 /tmp/tmp-bootc-build/id_rsa && tests/test.sh
86+ run : chmod 600 /tmp/tmp-bootc-build/id_rsa && sudo -E TMT_PLAN_NAME=$TMT_PLAN_NAME tests/test.sh
8087
8188 - name : Archive TMT logs
8289 if : always()
Original file line number Diff line number Diff line change 8282CONTAINERFILEOF
8383
8484LOCAL_IMAGE=" localhost/bootc:test"
85- sudo podman build \
85+ podman build \
8686 --retry 5 \
8787 --retry-delay 5s \
8888 -v " $( pwd) " :/code:z \
@@ -93,14 +93,14 @@ sudo podman build \
9393SSH_KEY=${BOOTC_TEMPDIR} /id_rsa
9494ssh-keygen -f " ${SSH_KEY} " -N " " -q -t rsa-sha2-256 -b 2048
9595
96- sudo truncate -s 10G " ${BOOTC_TEMPDIR} /disk.raw"
96+ truncate -s 10G " ${BOOTC_TEMPDIR} /disk.raw"
9797
9898# For test-22-logically-bound-install
99- sudo podman pull --retry 5 --retry-delay 5s quay.io/curl/curl:latest
100- sudo podman pull --retry 5 --retry-delay 5s quay.io/curl/curl-base:latest
101- sudo podman pull --retry 5 --retry-delay 5s registry.access.redhat.com/ubi9/podman:latest
99+ podman pull --retry 5 --retry-delay 5s quay.io/curl/curl:latest
100+ podman pull --retry 5 --retry-delay 5s quay.io/curl/curl-base:latest
101+ podman pull --retry 5 --retry-delay 5s registry.access.redhat.com/ubi9/podman:latest
102102
103- sudo podman run \
103+ podman run \
104104 --rm \
105105 --privileged \
106106 --pid=host \
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SSH_KEY=${BOOTC_TEMPDIR}/id_rsa
1010ARCH=$( uname -m)
1111case " $ARCH " in
1212" aarch64" )
13- sudo qemu-system-aarch64 \
13+ qemu-system-aarch64 \
1414 -name bootc-vm \
1515 -enable-kvm \
1616 -machine virt \
@@ -24,7 +24,7 @@ case "$ARCH" in
2424 -daemonize
2525 ;;
2626" x86_64" )
27- sudo qemu-system-x86_64 \
27+ qemu-system-x86_64 \
2828 -name bootc-vm \
2929 -enable-kvm \
3030 -cpu host \
You can’t perform that action at this time.
0 commit comments