Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

tests: two fixes #637

Merged
merged 2 commits into from
Jun 3, 2024
Merged

tests: two fixes #637

merged 2 commits into from
Jun 3, 2024

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Jun 1, 2024

fixture: Add missing trailing NUL in security.selinux xattr

Because we were only doing bare-user checkouts in the test
suite (and not trying to physically materialize the xattrs)
and because ostree today doesn't validate xattrs, this
problem was silently ignored. But I was looking at
changing the tests to do a checkout, and this caused confusing
failures.

Add the missing trailing NUL. Also while we're here,
split the xattr function in two; one which returns the
Rust-native value and a wrapper which converts to GVariant.

This will be useful later.


tests: Add some error context

This helped me debug a recent problem.


cgwalters added 2 commits June 1, 2024 15:17
Because we were only doing bare-user checkouts in the test
suite (and not trying to physically materialize the xattrs)
and because ostree today doesn't validate xattrs, this
problem was silently ignored.  But I was looking at
changing the tests to do a checkout, and this caused confusing
failures.

Add the missing trailing `NUL`.  Also while we're here,
split the xattr function in two; one which returns the
Rust-native value and a wrapper which converts to GVariant.

This will be useful later.
This helped me debug a recent problem.
@cgwalters cgwalters changed the title fixture: Add missing trailing NUL in security.selinux xattr tests: two fixes Jun 1, 2024
@jeckersb jeckersb self-assigned this Jun 3, 2024
@jeckersb jeckersb merged commit a5a1e0d into ostreedev:main Jun 3, 2024
10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants