tests/dmesg: add since/until test & fixture.
This commit is contained in:
@@ -146,3 +146,14 @@ fn test_filter_multiple() {
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_since_until() {
|
||||
new_ucmd!()
|
||||
.arg("--kmsg-file")
|
||||
.arg("kmsg.input")
|
||||
.arg("--since=\"2024-11-19 17:47:32\"")
|
||||
.arg("--until=\"2024-11-19 18:55:52\"")
|
||||
.succeeds()
|
||||
.stdout_only_fixture("test_since_until.expected");
|
||||
}
|
||||
|
Reference in New Issue
Block a user