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

pr: return correct exit code on error

This commit is contained in:
Ben Wiederhake 2024-03-31 21:19:24 +02:00
parent f5f8cf08e0
commit 9527341714
2 changed files with 10 additions and 7 deletions

View file

@ -43,6 +43,15 @@ fn valid_last_modified_template_vars(from: DateTime<Utc>) -> Vec<Vec<(String, St
.collect()
}
#[test]
fn test_invalid_flag() {
new_ucmd!()
.arg("--invalid-argument")
.fails()
.no_stdout()
.code_is(1);
}
#[test]
fn test_without_any_options() {
let test_file_path = "test_one_page.log";