Skip to content

tests: verify license, test, and recipe files are included in package…#2234

Open
Hassnaa9 wants to merge 1 commit intoprefix-dev:mainfrom
Hassnaa9:test/verify-archive-contents-in-integration-tests
Open

tests: verify license, test, and recipe files are included in package…#2234
Hassnaa9 wants to merge 1 commit intoprefix-dev:mainfrom
Hassnaa9:test/verify-archive-contents-in-integration-tests

Conversation

@Hassnaa9
Copy link
Copy Markdown

This PR updates integration tests for rattler_build_package to fully verify that additional files are correctly included in package archives.

These changes address previous TODOs and improve confidence that files are packaged correctly without altering build behavior.

@Hassnaa9
Copy link
Copy Markdown
Author

@wolfv can you review this when you have time please?

/// Helper to extract a .tar.bz2 package and return the extraction directory.
fn extract_package(package_path: &Path) -> tempfile::TempDir {
let extract_dir = tempfile::tempdir().expect("failed to create temp dir for extraction");
let file = std::fs::File::open(package_path).expect("failed to open package");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use fs::File (that is fs_err as imported above.

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