Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.


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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants