From 277e3d17a1b9d8268f6ffd8f64bff1c3546f0b3c Mon Sep 17 00:00:00 2001 From: Niyaz Nigmatullin Date: Sun, 16 Oct 2022 19:28:04 +0300 Subject: [PATCH] tests: change error messages for wrong arguments Clap used `"` for argument values, now uses `'`. --- tests/by-util/test_cp.rs | 2 +- tests/by-util/test_mknod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 17cc25d82..8860a57a5 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -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[=]'"); + .stderr_contains("error: 'bad' isn't a valid value for '--reflink[=]'"); } #[test] diff --git a/tests/by-util/test_mknod.rs b/tests/by-util/test_mknod.rs index f5bc9fd8a..d8afb3e53 100644 --- a/tests/by-util/test_mknod.rs +++ b/tests/by-util/test_mknod.rs @@ -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]