tests: change error messages for wrong arguments

Clap used `"` for argument values, now uses `'`.
This commit is contained in:
Niyaz Nigmatullin 2022-10-16 19:28:04 +03:00
parent 39edd16c9f
commit 277e3d17a1
2 changed files with 3 additions and 3 deletions

View file

@ -1395,7 +1395,7 @@ fn test_cp_reflink_bad() {
.arg(TEST_HELLO_WORLD_SOURCE)
.arg(TEST_EXISTING_FILE)
.fails()
.stderr_contains("error: \"bad\" isn't a valid value for '--reflink[=<WHEN>]'");
.stderr_contains("error: 'bad' isn't a valid value for '--reflink[=<WHEN>]'");
}
#[test]

View file

@ -92,14 +92,14 @@ fn test_mknod_character_device_requires_major_and_minor() {
.arg("1")
.arg("c")
.fails()
.stderr_contains("Invalid value \"c\"");
.stderr_contains("Invalid value 'c'");
new_ucmd!()
.arg("test_file")
.arg("c")
.arg("c")
.arg("1")
.fails()
.stderr_contains("Invalid value \"c\"");
.stderr_contains("Invalid value 'c'");
}
#[test]