Skip to content

Commit 7dbd174

Browse files
authored
Merge pull request #515 from cakebaker/bump_uutest
Bump `uutest` & remove unused imports in tests
2 parents 2fbcee2 + 78412b3 commit 7dbd174

19 files changed

+153
-96
lines changed

Cargo.lock

Lines changed: 148 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ terminal_size = "0.4.2"
7474
textwrap = { version = "0.16.1", features = ["terminal_size"] }
7575
thiserror = "2.0.4"
7676
uucore = "0.1.0"
77-
uutests = "0.1.0"
77+
uutests = "0.2.0"
7878
walkdir = "2.5.0"
7979
windows = { version = "0.62.0" }
8080
windows-sys = { version = "0.61.0", default-features = false }

tests/by-util/test_free.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ use pretty_assertions::assert_eq;
77
use regex::Regex;
88

99
use uutests::new_ucmd;
10-
use uutests::util::TestScenario;
11-
use uutests::util_name;
1210

1311
// TODO: make tests combineable (e.g. test --total --human)
1412

tests/by-util/test_pgrep.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use std::{
1212
#[cfg(target_os = "linux")]
1313
use regex::Regex;
1414
use uutests::new_ucmd;
15-
use uutests::util::TestScenario;
16-
use uutests::util_name;
1715

1816
#[cfg(target_os = "linux")]
1917
const SINGLE_PID: &str = "^[1-9][0-9]*";

tests/by-util/test_pidof.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// file that was distributed with this source code.
55

66
use uutests::new_ucmd;
7-
use uutests::util::TestScenario;
8-
use uutests::util_name;
97

108
#[test]
119
fn test_no_args() {

tests/by-util/test_pidwait.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// file that was distributed with this source code.
55

66
use uutests::new_ucmd;
7-
use uutests::util::TestScenario;
8-
use uutests::util_name;
97

108
#[test]
119
fn test_invalid_arg() {

tests/by-util/test_pkill.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
#[cfg(unix)]
77
use uutests::new_ucmd;
8-
#[cfg(unix)]
9-
use uutests::util::TestScenario;
10-
#[cfg(unix)]
11-
use uutests::util_name;
128

139
#[cfg(unix)]
1410
#[test]

tests/by-util/test_pmap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use regex::Regex;
88
#[cfg(target_os = "linux")]
99
use std::process;
1010
use uutests::new_ucmd;
11-
use uutests::util::TestScenario;
12-
use uutests::util_name;
11+
#[cfg(target_os = "linux")]
12+
use uutests::{util::TestScenario, util_name};
1313

1414
const NON_EXISTING_PID: &str = "999999";
1515
#[cfg(target_os = "linux")]

tests/by-util/test_ps.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// file that was distributed with this source code.
55

66
use uutests::new_ucmd;
7-
use uutests::util::TestScenario;
8-
use uutests::util_name;
97

108
#[test]
119
#[cfg(target_os = "linux")]

tests/by-util/test_pwdx.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::process;
88
use regex::Regex;
99

1010
use uutests::new_ucmd;
11-
use uutests::util::TestScenario;
12-
use uutests::util_name;
1311

1412
#[test]
1513
fn test_no_args() {

0 commit comments

Comments
 (0)