From bef735779a439d6ac4f1c119c9d07be8ef325b76 Mon Sep 17 00:00:00 2001 From: cxy Date: Wed, 22 Mar 2023 09:40:15 +0000 Subject: [PATCH] =?UTF-8?q?update=20testcases/cli-test/pcp-system-tools/oe?= =?UTF-8?q?=5Ftest=5Fpcp=5Fcollectl.sh.=20=E5=AE=89=E8=A3=85=E5=AE=8Cpcp-s?= =?UTF-8?q?ystem-tools=E5=92=8Cpcp=E5=8C=85=EF=BC=8C=E5=91=BD=E4=BB=A4pcp-?= =?UTF-8?q?collectl=E5=92=8Cpmcollectl=E6=97=A0=E6=B3=95=E8=A2=AB=E6=94=AF?= =?UTF-8?q?=E6=8C=81=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=95=B4=E4=B8=AA=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5=EF=BC=88=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=89=88=E6=9C=AC=E6=BA=90=EF=BC=9A22.03-LTS-SP1?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E5=8F=AA=E6=9C=89=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=91=BD=E4=BB=A4=E8=A1=8C=E5=86=85=E5=AE=B9?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BE=8B=E6=89=A7=E8=A1=8C=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cxy --- .../pcp-system-tools/oe_test_pcp_collectl.sh | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/testcases/cli-test/pcp-system-tools/oe_test_pcp_collectl.sh b/testcases/cli-test/pcp-system-tools/oe_test_pcp_collectl.sh index 23c564c31..aeeb3fdfa 100644 --- a/testcases/cli-test/pcp-system-tools/oe_test_pcp_collectl.sh +++ b/testcases/cli-test/pcp-system-tools/oe_test_pcp_collectl.sh @@ -30,28 +30,28 @@ function pre_test() { function run_test() { LOG_INFO "Start to run test." - if [ $VERSION_ID != "22.03" ]; then - pcp-collectl --version 2>&1 | grep "$pcp_version" - CHECK_RESULT $? - pcp-collectl -a $archive_data -c 10 -i 2 | grep 'CPU' - CHECK_RESULT $? - pmcollectl -a $archive_data -c 10 -i 2 | grep 'CPU' - CHECK_RESULT $? - pcp-collectl -h $host_name -c 10 | grep 'CPU' - CHECK_RESULT $? - pcp-collectl -v -c 10 | grep 'RECORD' - CHECK_RESULT $? - pcp-collectl -f FOLIO - CHECK_RESULT $? - grep 'PCPFolio' FOLIO - CHECK_RESULT $? - pcp-collectl -p FOLIO -c 10 | grep 'CPU' - CHECK_RESULT $? - pcp-collectl -R 10 | grep 'CPU' - CHECK_RESULT $? - else - LOG_INFO "Obsolete version command" - fi +# if [ $VERSION_ID != "22.03" ]; then +# pcp-collectl --version 2>&1 | grep "$pcp_version" +# CHECK_RESULT $? +# pcp-collectl -a $archive_data -c 10 -i 2 | grep 'CPU' +# CHECK_RESULT $? +# pmcollectl -a $archive_data -c 10 -i 2 | grep 'CPU' +# CHECK_RESULT $? +# pcp-collectl -h $host_name -c 10 | grep 'CPU' +# CHECK_RESULT $? +# pcp-collectl -v -c 10 | grep 'RECORD' +# CHECK_RESULT $? +# pcp-collectl -f FOLIO +# CHECK_RESULT $? +# grep 'PCPFolio' FOLIO +# CHECK_RESULT $? +# pcp-collectl -p FOLIO -c 10 | grep 'CPU' +# CHECK_RESULT $? +# pcp-collectl -R 10 | grep 'CPU' +# CHECK_RESULT $? +# else +# LOG_INFO "Obsolete version command" +# fi LOG_INFO "End to run test." } -- Gitee