Skip to content

Commit a9ba594

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

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
@@ -76,7 +76,7 @@ jobs:
7676
7777
df -h /
7878
sudo install -m 0755 target/release/tests-integration /usr/bin/bootc-integration-tests
79-
rm target -rf
79+
sudo rm target -rf
8080
df -h /
8181
# The ostree-container tests
8282
sudo podman run --privileged --pid=host -v /:/run/host -v $(pwd):/src:ro -v /var/tmp:/var/tmp \
@@ -188,6 +188,9 @@ jobs:
188188
- name: Build container
189189
run: |
190190
just build-integration-test-image-from-package target/packages
191+
# Extra cross-check (duplicating the integration test) that we're using the right base
192+
used_vid=$(podman run --rm localhost/bootc-integration bash -c '. /usr/lib/os-release && echo ${ID}-${VERSION_ID}')
193+
test ${{ matrix.test_os }} = "${used_vid}"
191194
192195
- name: Unit and container integration tests
193196
run: just test-container

0 commit comments

Comments
 (0)