Skip to content

Commit b3d4549

Browse files
committed
tests: remove unused imports
1 parent 3056067 commit b3d4549

15 files changed

Lines changed: 5 additions & 46 deletions

tests/by-util/test_blockdev.rs

Lines changed: 0 additions & 6 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() {
@@ -28,8 +26,6 @@ mod linux {
2826
use regex::Regex;
2927

3028
use uutests::new_ucmd;
31-
use uutests::util::TestScenario;
32-
use uutests::util_name;
3329

3430
#[test]
3531
fn test_fails_on_first_error() {
@@ -62,8 +58,6 @@ mod linux {
6258
#[cfg(not(target_os = "linux"))]
6359
mod non_linux {
6460
use uutests::new_ucmd;
65-
use uutests::util::TestScenario;
66-
use uutests::util_name;
6761

6862
#[test]
6963
fn test_fails_on_unsupported_platforms() {

tests/by-util/test_ctrlaltdel.rs

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

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

139
#[test]
1410
#[cfg(target_os = "linux")]

tests/by-util/test_dmesg.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_fsfreeze.rs

Lines changed: 0 additions & 6 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() {
@@ -27,8 +25,6 @@ fn test_operations_mutually_exclusive() {
2725
mod linux {
2826

2927
use uutests::new_ucmd;
30-
use uutests::util::TestScenario;
31-
use uutests::util_name;
3228

3329
#[test]
3430
fn test_fails_on_non_existing_path() {
@@ -54,8 +50,6 @@ mod linux {
5450
#[cfg(not(target_os = "linux"))]
5551
mod non_linux {
5652
use uutests::new_ucmd;
57-
use uutests::util::TestScenario;
58-
use uutests::util_name;
5953

6054
#[test]
6155
fn test_fails_on_unsupported_platforms() {

tests/by-util/test_lscpu.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_lslocks.rs

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

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

139
#[test]
1410
#[cfg(target_os = "linux")]

tests/by-util/test_lsmem.rs

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

66
use std::path::Path;
77
use uutests::new_ucmd;
8-
use uutests::util::TestScenario;
9-
use uutests::util_name;
108

119
fn write_file_content(dir: &Path, name: &str, content: &str) {
1210
std::fs::create_dir_all(dir).unwrap();

tests/by-util/test_mcookie.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::io::Write;
88
use tempfile::NamedTempFile;
99

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

1412
#[test]
1513
fn test_invalid_arg() {

tests/by-util/test_mesg.rs

Lines changed: 0 additions & 4 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_verb() {
@@ -27,8 +25,6 @@ fn test_no_terminal() {
2725
#[cfg(not(target_family = "unix"))]
2826
mod non_unix {
2927
use uutests::new_ucmd;
30-
use uutests::util::TestScenario;
31-
use uutests::util_name;
3228

3329
#[test]
3430
fn test_fails_on_unsupported_platforms() {

tests/by-util/test_mountpoint.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
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;
7+
98
#[test]
109
fn test_invalid_arg() {
1110
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);

0 commit comments

Comments
 (0)