From 8fe34c72d2980f39d2d7664b92c776a9c66d1b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1z=20can=20De=C4=9Firmenci?= Date: Wed, 26 May 2021 03:07:49 +0300 Subject: [PATCH] test: fix tests --- tests/by-util/test_stdbuf.rs | 2 +- tests/by-util/test_sync.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_stdbuf.rs b/tests/by-util/test_stdbuf.rs index 4732d2def..2e09601ce 100644 --- a/tests/by-util/test_stdbuf.rs +++ b/tests/by-util/test_stdbuf.rs @@ -26,7 +26,7 @@ fn test_stdbuf_line_buffered_stdout() { #[test] fn test_stdbuf_no_buffer_option_fails() { new_ucmd!().args(&["head"]).fails().stderr_is( - "The following required arguments were not provided:\n \ + "error: The following required arguments were not provided:\n \ --error \n \ --input \n \ --output \n\n\ diff --git a/tests/by-util/test_sync.rs b/tests/by-util/test_sync.rs index 436bfdef3..033651910 100644 --- a/tests/by-util/test_sync.rs +++ b/tests/by-util/test_sync.rs @@ -37,5 +37,5 @@ fn test_sync_no_existing_files() { .arg("--data") .arg("do-no-exist") .fails() - .stderr_contains("error: cannot stat"); + .stderr_contains("cannot stat"); }