Skip to content

Commit f0b6851

Browse files
committed
Removing two tests that don't currently work on macos
1 parent 9ba8a46 commit f0b6851

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/by-util/test_chroot.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ fn test_no_such_directory() {
5757
}
5858

5959
#[test]
60+
#[cfg(not(target_os = "macos"))]
6061
fn test_multiple_group_args() {
6162
let ts = TestScenario::new(util_name!());
6263

6364
// Use / as chroot directory since it has all binaries
64-
if let Ok(result) = run_ucmd_as_root(
65-
&ts,
66-
&["--groups=", "/", "id", "-G"],
67-
) {
65+
if let Ok(result) = run_ucmd_as_root(&ts, &["--groups=", "/", "id", "-G"]) {
6866
result.success().stdout_is("0\n");
6967
} else {
7068
print!("Test skipped; requires root user");

tests/by-util/test_install.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,7 @@ fn test_target_file_ends_with_slash() {
20172017
}
20182018

20192019
#[test]
2020+
#[cfg(not(target_os = "macos"))]
20202021
fn test_install_root_combined() {
20212022
let ts = TestScenario::new(util_name!());
20222023
let at = &ts.fixtures;

0 commit comments

Comments
 (0)