Skip to content

libtest: Allow adding a new ref to an existing temporary ostree repo - #6592

Merged
smcv merged 1 commit into
flatpak:mainfrom
smcv:run-custom-insttest
Apr 10, 2026
Merged

smcv merged 1 commit into
flatpak:mainfrom
smcv:run-custom-insttest

Conversation

@smcv

@smcv smcv commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

When we run tests/test-run-custom.sh as a build-time test, we expect to already have the necessary runtimes, apps, etc. in ${builddir}/tests/runtime-repo. However, when running "as-installed" tests, we're using a fresh temporary ostree repo for each test. Merely having the repo exist is not enough: for some tests, and in particular tests/test-run-custom.sh, it needs to have more than one runtime available.

Resolves: #6591

@smcv

smcv commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

This works in an artificial test environment (qemu VM) similar to the one where Debian runs automated tests in practice.

I ran into #6593 while trying to test it manually in a non-minimal environment (a VM with GNOME 49 and development tools) but I don't think that's a regression.

Comment thread tests/libtest.sh Outdated
@smcv
smcv marked this pull request as draft April 10, 2026 12:50
@smcv
smcv marked this pull request as ready for review April 10, 2026 14:03
When we run `tests/test-run-custom.sh` as a build-time test,
we expect to already have the necessary runtimes, apps, etc. in
`${builddir}/tests/runtime-repo`. However, when running "as-installed"
tests, we're using a fresh temporary ostree repo for each test.
Merely having the repo exist is not enough: for some tests, and in
particular `tests/test-run-custom.sh`, it needs to have more than one
runtime available.

Resolves: flatpak#6591
Signed-off-by: Simon McVittie <[email protected]>
@smcv
smcv force-pushed the run-custom-insttest branch from 17c8ff8 to e01befb Compare April 10, 2026 14:04
@smcv

smcv commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

Fixed logic error, thanks @bbhtt

@smcv
smcv added this pull request to the merge queue Apr 10, 2026
Merged via the queue into flatpak:main with commit 50dda82 Apr 10, 2026
11 checks passed
@smcv
smcv deleted the run-custom-insttest branch April 10, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "As-installed" test failure in test-run-custom.sh since 1.16.5

3 participants