From dcac86b9fa3eff838ea7c5e2252419a5dea7d907 Mon Sep 17 00:00:00 2001
From: haozi007 <liuhao27@huawei.com>
Date: Thu, 7 Sep 2023 14:41:48 +0800
Subject: [PATCH 143/145] adapt new error message for isula cp

Signed-off-by: haozi007 <liuhao27@huawei.com>
---
 CI/test_cases/container_cases/cp.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CI/test_cases/container_cases/cp.sh b/CI/test_cases/container_cases/cp.sh
index 668ce09b..1b5d7a48 100755
--- a/CI/test_cases/container_cases/cp.sh
+++ b/CI/test_cases/container_cases/cp.sh
@@ -57,10 +57,10 @@ test_cp_file_from_container()
     fi
     rm -rf $dstfile
 
-    isula cp $containername:/etc/../etc/passwd/ $cpfiles 2>&1 | grep "Not a directory"
+    isula cp $containername:/etc/../etc/passwd/ $cpfiles 2>&1 | grep "get more information from log"
     [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to do copy" && ((ret++))
 
-    isula cp $containername:/etc/nonexists $cpfiles 2>&1 | grep "No such file or directory"
+    isula cp $containername:/etc/nonexists $cpfiles 2>&1 | grep "get more information from log"
     [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to do copy" && ((ret++))
 
     dstfile=$cpfiles/etc
@@ -146,10 +146,10 @@ test_cp_file_to_container()
     isula cp /etc/passwd $containername:$cpfiles/nonexists/ 2>&1 | grep "no such directory"
     [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to do copy" && ((ret++))
 
-    isula cp /etc/passwd $containername:$cpfiles/nonexists/nonexists 2>&1 | grep "No such file or directory"
+    isula cp /etc/passwd $containername:$cpfiles/nonexists/nonexists 2>&1 | grep "get more information from log"
     [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to do copy" && ((ret++))
 
-    isula cp /etc/nonexists $containername:$cpfiles 2>&1 | grep "No such file or directory"
+    isula cp /etc/nonexists $containername:$cpfiles 2>&1 | grep "get more information from log"
     [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to do copy" && ((ret++))
     rm -rf $dstfile
 
-- 
2.40.1

