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

Run cargo fmt on the tree

This commit is contained in:
Sylvestre Ledru 2025-03-24 21:04:32 +01:00
parent 36dd968c9a
commit a85539f530
189 changed files with 841 additions and 782 deletions

View file

@ -6,7 +6,7 @@
#[cfg(not(target_os = "android"))]
use crate::common::util::is_ci;
use crate::common::util::{run_ucmd_as_root, TestScenario};
use crate::common::util::{TestScenario, run_ucmd_as_root};
#[test]
fn test_invalid_arg() {
@ -17,9 +17,11 @@ fn test_invalid_arg() {
fn test_missing_operand() {
let result = new_ucmd!().fails_with_code(125);
assert!(result
.stderr_str()
.starts_with("error: the following required arguments were not provided"));
assert!(
result
.stderr_str()
.starts_with("error: the following required arguments were not provided")
);
assert!(result.stderr_str().contains("<newroot>"));
}
@ -33,9 +35,11 @@ fn test_enter_chroot_fails() {
at.mkdir("jail");
let result = ucmd.arg("jail").fails_with_code(125);
assert!(result
.stderr_str()
.starts_with("chroot: cannot chroot to 'jail': Operation not permitted (os error 1)"));
assert!(
result
.stderr_str()
.starts_with("chroot: cannot chroot to 'jail': Operation not permitted (os error 1)")
);
}
#[test]