From 2bcdae124c69b79bdf41e89c91b4474af1fef5df Mon Sep 17 00:00:00 2001 From: Miles Liu Date: Wed, 22 Mar 2023 12:02:01 +0800 Subject: [PATCH] chroot: fix unused import on Android --- tests/by-util/test_chroot.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_chroot.rs b/tests/by-util/test_chroot.rs index 6429042c8..697be8775 100644 --- a/tests/by-util/test_chroot.rs +++ b/tests/by-util/test_chroot.rs @@ -1,6 +1,8 @@ // spell-checker:ignore (words) araba newroot userspec chdir pwd's isroot -use crate::common::util::{is_ci, run_ucmd_as_root, TestScenario}; +#[cfg(not(target_os = "android"))] +use crate::common::util::is_ci; +use crate::common::util::{run_ucmd_as_root, TestScenario}; #[test] fn test_invalid_arg() {