From 881b9964431833e56a13551943a2cc51d987083d Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Tue, 15 Jun 2021 12:08:45 +0200 Subject: [PATCH] agent: Make wording of error message match CRI-O test suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CRI-O integration test suite has two tests that fail because they search for "not found" in the error message, but we emit "is not exist". Change the error message to match the expectations of the test suite. Fixes: #2036 Reported-by: Julien Ropé Signed-off-by: Christophe de Dinechin --- src/agent/rustjail/src/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/rustjail/src/container.rs b/src/agent/rustjail/src/container.rs index 01bd54b9e6..b1a2fb2cd4 100644 --- a/src/agent/rustjail/src/container.rs +++ b/src/agent/rustjail/src/container.rs @@ -641,7 +641,7 @@ fn do_init_child(cwfd: RawFd) -> Result<()> { let exec_file = Path::new(&args[0]); log_child!(cfd_log, "process command: {:?}", &args); if !exec_file.exists() { - find_file(exec_file).ok_or_else(|| anyhow!("the file {} is not exist", &args[0]))?; + find_file(exec_file).ok_or_else(|| anyhow!("the file {} was not found", &args[0]))?; } // notify parent that the child's ready to start