X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=utils%2Fci%2Ftest_sdk_monitor.sh;h=51e5e7ab7191e9eabc2285caef90ddf81f41f6eb;hb=1df4c60a009aa76779c573cc035ea3f49ba5dd87;hp=afd4b8cebbb6c99cdb92f55039cd191e620b6537;hpb=48db0512f82329aa9f46ba9e87efb8a1846ba966;p=osm%2Fvim-emu.git diff --git a/utils/ci/test_sdk_monitor.sh b/utils/ci/test_sdk_monitor.sh index afd4b8c..51e5e7a 100755 --- a/utils/ci/test_sdk_monitor.sh +++ b/utils/ci/test_sdk_monitor.sh @@ -29,6 +29,9 @@ son-emu-cli compute stop -d datacenter1 -n vnf1 # test if prometheus query worked echo $cpu_load + +regex='\[[0-9.]*, .*\]' + if [[ $cpu_load =~ $regex ]] ; then echo " cpu monitor test OK" exit 0 @@ -36,3 +39,5 @@ else echo "cpu monitor test not OK" exit 1 fi + +