From 53ae5c33c961be2d9309f6446f39e7c57460894a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 29 Apr 2023 20:39:18 +0200 Subject: [PATCH] Disable test_sort::test_compress_fail (for real) & test_cp::test_cp_arg_interactive_update on android --- tests/by-util/test_cp.rs | 1 + tests/by-util/test_sort.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index d658d9c2b..7a0743bd1 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -257,6 +257,7 @@ fn test_cp_arg_interactive() { } #[test] +#[cfg(not(target_os = "android"))] fn test_cp_arg_interactive_update() { // -u -i won't show the prompt to validate the override or not // Therefore, the error code will be 0 diff --git a/tests/by-util/test_sort.rs b/tests/by-util/test_sort.rs index 114907393..e66a405ab 100644 --- a/tests/by-util/test_sort.rs +++ b/tests/by-util/test_sort.rs @@ -876,7 +876,7 @@ fn sort_empty_chunk() { } #[test] -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] fn test_compress() { new_ucmd!() .args(&[ @@ -915,6 +915,7 @@ fn test_compress_merge() { } #[test] +#[cfg(not(target_os = "android"))] fn test_compress_fail() { #[cfg(not(windows))] TestScenario::new(util_name!())