touch: adapt tests to changes in parse_datetime

This commit is contained in:
Daniel Hofstetter 2025-08-01 10:23:30 +02:00
parent 7d8c58ad36
commit 7dc20bbdb0

View file

@ -684,7 +684,8 @@ fn test_touch_set_date_relative_smoke() {
"2 seconds",
"2 years 1 week",
"2 days ago",
"2 months and 1 second",
"2 months 1 second",
"a",
];
for time in times {
let (at, mut ucmd) = at_and_ucmd!();
@ -694,11 +695,6 @@ fn test_touch_set_date_relative_smoke() {
.no_stderr()
.no_stdout();
}
let (at, mut ucmd) = at_and_ucmd!();
at.touch("f");
ucmd.args(&["-d", "a", "f"])
.fails()
.stderr_contains("touch: Unable to parse date");
}
#[test]