Skip to content

Commit b0ea746

Browse files
committed
ci: Fix remove target folder permission issue in Test install
Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent 87575ee commit b0ea746

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
7878
df -h /
7979
sudo install -m 0755 target/release/tests-integration /usr/bin/bootc-integration-tests
80-
rm target -rf
80+
sudo rm target -rf
8181
df -h /
8282
# The ostree-container tests
8383
sudo podman run --privileged --pid=host -v /:/run/host -v $(pwd):/src:ro -v /var/tmp:/var/tmp \
@@ -254,6 +254,9 @@ jobs:
254254
- name: Build container
255255
run: |
256256
just build-integration-test-image-from-package target/packages
257+
# Extra cross-check (duplicating the integration test) that we're using the right base
258+
used_vid=$(podman run --rm localhost/bootc-integration bash -c '. /usr/lib/os-release && echo ${ID}-${VERSION_ID}')
259+
test ${{ matrix.test_os }} = "${used_vid}"
257260
258261
- name: Unit and container integration tests
259262
run: just test-container

0 commit comments

Comments
 (0)