projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/master'
[osm/vim-emu.git]
/
utils
/
ci
/
test_sdk_monitor.sh
diff --git
a/utils/ci/test_sdk_monitor.sh
b/utils/ci/test_sdk_monitor.sh
index
afd4b8c
..
51e5e7a
100755
(executable)
--- 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
# test if prometheus query worked
echo $cpu_load
+
+regex='\[[0-9.]*, .*\]'
+
if [[ $cpu_load =~ $regex ]] ; then
echo " cpu monitor test OK"
exit 0
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
echo "cpu monitor test not OK"
exit 1
fi
+
+