mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
pinky: obtain correct timestamp
This commit is contained in:
parent
0020d5c80c
commit
833d50e192
3 changed files with 6 additions and 25 deletions
|
@ -46,18 +46,8 @@ fn test_long_format() {
|
|||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_short_format() {
|
||||
let scene = TestScenario::new(UTIL_NAME);
|
||||
|
||||
let args = ["-s"];
|
||||
scene.ucmd().args(&args).run().stdout_is(expected_result(&args));
|
||||
|
||||
let args = ["-f"];
|
||||
scene.ucmd().args(&args).run().stdout_is(expected_result(&args));
|
||||
|
||||
let args = ["-w"];
|
||||
scene.ucmd().args(&args).run().stdout_is(expected_result(&args));
|
||||
|
||||
let args = ["-i"];
|
||||
scene.ucmd().args(&args).run().stdout_is(expected_result(&args));
|
||||
|
@ -68,5 +58,5 @@ fn test_short_format() {
|
|||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn expected_result(args: &[&str]) -> String {
|
||||
TestScenario::new(UTIL_NAME).cmd(UTIL_NAME).args(args).run().stdout
|
||||
TestScenario::new(UTIL_NAME).cmd_keepenv(UTIL_NAME).args(args).run().stdout
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue