1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: patch tests to simplify imports

This commit is contained in:
Dorian Peron 2025-07-01 01:52:57 +02:00
parent 5ce678b1cd
commit 6e23d4e979
63 changed files with 242 additions and 343 deletions

View file

@ -5,8 +5,6 @@
use std::fs;
use tempfile::tempdir;
use uutests::new_ucmd;
use uutests::util::TestScenario;
use uutests::util_name;
#[test]
fn test_invalid_arg() {
@ -62,6 +60,9 @@ fn test_sync_data_but_not_file() {
#[cfg(feature = "chmod")]
#[test]
fn test_sync_no_permission_dir() {
use uutests::util::TestScenario;
use uutests::util_name;
let ts = TestScenario::new(util_name!());
let at = &ts.fixtures;
let dir = "foo";
@ -78,6 +79,9 @@ fn test_sync_no_permission_dir() {
#[cfg(feature = "chmod")]
#[test]
fn test_sync_no_permission_file() {
use uutests::util::TestScenario;
use uutests::util_name;
let ts = TestScenario::new(util_name!());
let at = &ts.fixtures;
let f = "file";