Description: skip integration tests that require source tree write access during autopkgtests Some integration tests use the get_built_root() function which walks up the directory tree from the test executable looking for Cargo.toml. During autopkgtests, the executable runs from a temporary directory but uses files from the cargo, so the tests never find the project's Cargo.toml file and fail with a panic. These tests also require write permissions to the lib directory under the cargo registry. Author: Nadzeya Hutsko Forwarded: not-needed Last-Update: 2025-09-13 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/tests/testbox_tests.rs +++ b/tests/testbox_tests.rs @@ -236,6 +236,7 @@ pub unsafe extern "C" fn main() -> ! { } #[test] +#[ignore = "require access to the source tree structure and write permissions"] fn unused_override() { for git_feature in git_features_for_bootstrap() { let mut p = Project::new(); @@ -261,6 +262,7 @@ fn main() { } #[test] +#[ignore = "require access to the source tree structure and write permissions"] fn minimal_testbox() { let mut p = Project::new(); @@ -421,6 +423,7 @@ fn main() { } #[test] +#[ignore = "require access to the source tree structure and write permissions"] fn simple_workspace() { let mut p = Project::new(); let built_root = get_built_root(); @@ -466,6 +469,7 @@ fn main() { feature = "chrono", feature = "semver" ))] +#[ignore = "require access to the source tree structure and write permissions"] fn full_testbox() { for git_feature in git_features() { let mut p = Project::new(); @@ -587,6 +591,7 @@ fn main() {{ feature = "chrono", feature = "semver" ))] +#[ignore = "require access to the source tree structure and write permissions"] fn overridden_testbox() { for git_feature in git_features() { let mut p = Project::new(); @@ -958,6 +963,7 @@ fn main() { #[test] #[cfg(feature = "chrono")] +#[ignore = "require access to the source tree structure and write permissions"] fn source_date_epoch() { let mut p = Project::new(); let built_root = get_built_root(); @@ -1008,6 +1014,7 @@ fn main() { #[test] #[cfg(any(feature = "git2", feature = "gix"))] +#[ignore = "require access to the source tree structure and write permissions"] fn git_no_git() { for git_feature in git_features_for_bootstrap() { // `root` isn't even a git-repo @@ -1032,6 +1039,7 @@ fn main() { #[test] #[cfg(feature = "git2")] +#[ignore = "require access to the source tree structure and write permissions"] fn clean_then_dirty_git() { for git_feature in git_features_for_bootstrap() { let mut p = Project::new(); @@ -1106,6 +1114,7 @@ fn main() { #[test] #[cfg(feature = "git2")] +#[ignore = "require access to the source tree structure and write permissions"] fn empty_git() { for git_feature in git_features_for_bootstrap() { // Issue #7, git can be there and still fail @@ -1129,6 +1138,7 @@ fn main() { #[cfg(target_os = "windows")] #[test] +#[ignore = "require access to the source tree structure and write permissions"] fn absolute_paths() { // Issue #35. Usually binaries we refer to are simply executables names but sometimes they are // absolute paths, containing backslashes, and everything gets sad on this devilish platform.