From 10fd1ab88932e377bbc33da04d02f830e839019e Mon Sep 17 00:00:00 2001 From: xianglongfei Date: Tue, 5 Mar 2024 18:20:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98,=E7=94=A8=E4=BE=8B=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=80=82=E9=85=8D=E8=8B=B1=E6=96=87=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smoke-basic-os/oe_test_sed_001/oe_test_sed_001.sh | 2 +- .../smoke-test/smoke-basic-os/oe_test_stat/oe_test_stat.sh | 2 +- .../oe_test_syslog_dmesg_001/oe_test_syslog_dmesg_001.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_sed_001/oe_test_sed_001.sh b/testcases/smoke-test/smoke-basic-os/oe_test_sed_001/oe_test_sed_001.sh index 99787e40d..814d3aacd 100644 --- a/testcases/smoke-test/smoke-basic-os/oe_test_sed_001/oe_test_sed_001.sh +++ b/testcases/smoke-test/smoke-basic-os/oe_test_sed_001/oe_test_sed_001.sh @@ -36,7 +36,7 @@ function run_test() { CHECK_RESULT $? 0 0 "Return value error" sed --v CHECK_RESULT $? 0 0 "Version is error" - sed --help | grep "用法" + sed --help | grep -iE "用法|Usage" CHECK_RESULT $? 0 0 "sed --help fail" sed -i '1i testline' /tmp/test_sed grep testline /tmp/test_sed diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_stat/oe_test_stat.sh b/testcases/smoke-test/smoke-basic-os/oe_test_stat/oe_test_stat.sh index cf0aebb6c..40a68e3ba 100644 --- a/testcases/smoke-test/smoke-basic-os/oe_test_stat/oe_test_stat.sh +++ b/testcases/smoke-test/smoke-basic-os/oe_test_stat/oe_test_stat.sh @@ -21,7 +21,7 @@ source "${OET_PATH}"/libs/locallibs/common_lib.sh function run_test() { LOG_INFO "Start to run test." - stat --help | grep "用法" + stat --help | grep -iE "用法|Usage" CHECK_RESULT $? 0 0 "Failed to execute stat --help" stat --version | grep "Copyright (C)" CHECK_RESULT $? 0 0 "Failed to execute stat --version" diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_syslog_dmesg_001/oe_test_syslog_dmesg_001.sh b/testcases/smoke-test/smoke-basic-os/oe_test_syslog_dmesg_001/oe_test_syslog_dmesg_001.sh index 7a044b5f6..5e1da9356 100644 --- a/testcases/smoke-test/smoke-basic-os/oe_test_syslog_dmesg_001/oe_test_syslog_dmesg_001.sh +++ b/testcases/smoke-test/smoke-basic-os/oe_test_syslog_dmesg_001/oe_test_syslog_dmesg_001.sh @@ -21,7 +21,7 @@ source "${OET_PATH}"/libs/locallibs/common_lib.sh function run_test() { LOG_INFO "Start to run test." - dmesg --help | grep "用法" + dmesg --help | grep -iE "用法|Usage" CHECK_RESULT $? 0 0 "Failed to execute dmesg --help" dmesg -V CHECK_RESULT $? 0 0 "Failed to execute dmesg -V" -- Gitee