mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
ls,stat: fix single_char_pattern in tests
This commit is contained in:
@@ -4193,10 +4193,10 @@ fn test_ls_context_long() {
|
||||
for c_flag in ["-Zl", "-Zal"] {
|
||||
let result = scene.ucmd().args(&[c_flag, "foo"]).succeeds();
|
||||
|
||||
let line: Vec<_> = result.stdout_str().split(" ").collect();
|
||||
assert!(line[0].ends_with("."));
|
||||
let line: Vec<_> = result.stdout_str().split(' ').collect();
|
||||
assert!(line[0].ends_with('.'));
|
||||
assert!(line[4].starts_with("unconfined_u"));
|
||||
let s: Vec<_> = line[4].split(":").collect();
|
||||
let s: Vec<_> = line[4].split(':').collect();
|
||||
assert!(s.len() == 4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -511,6 +511,6 @@ fn test_stat_selinux() {
|
||||
.stdout_contains("system_u");
|
||||
// Count that we have 4 fields
|
||||
let result = ts.ucmd().arg("--printf='%C'").arg("/bin/").succeeds();
|
||||
let s: Vec<_> = result.stdout_str().split(":").collect();
|
||||
let s: Vec<_> = result.stdout_str().split(':').collect();
|
||||
assert!(s.len() == 4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user