summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Yu <Gabriel.yuyang@huawei.com>2018-05-03 16:26:47 +0800
committerYang Yu <Gabriel.yuyang@huawei.com>2018-05-03 16:26:47 +0800
commit8093071fbc4314e0675c3daf2100d8ce9ee44b98 (patch)
tree56d10fa4cd02c763ce034e9d88880d3ecdd56447
parentcb67313c1e14b6eca057bdfc7722bc11506b7a2a (diff)
Add monitor dir to unit test
Change-Id: I5a1540e4f176ea978a712a06040c297373526815 Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
-rwxr-xr-xverify.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/verify.sh b/verify.sh
index 64b5072b..1cdac39c 100755
--- a/verify.sh
+++ b/verify.sh
@@ -12,6 +12,7 @@
# Run flake8, unit, coverage test
getopts ":f" FILE_OPTION
+STYLE_CHECK_DIRS="testsuites/posca/ utils/ monitor/"
run_flake8() {
echo "========================================="
@@ -19,9 +20,9 @@ run_flake8() {
echo "-----------------------------------------"
logfile=flake8_verify.log
if [ $FILE_OPTION == "f" ]; then
- flake8 --append-config=flake8_cfg testsuites/posca/ utils/ > $logfile
+ flake8 --append-config=flake8_cfg ${STYLE_CHECK_DIRS} > $logfile
else
- flake8 --append-config=flake8_cfg testsuites/posca/ utils/
+ flake8 --append-config=flake8_cfg ${STYLE_CHECK_DIRS}
fi
if [ $? -ne 0 ]; then
@@ -53,7 +54,8 @@ run_nosetests() {
utils/env_prepare/__init__.py \
utils/infra_setup/__init__.py \
monitor/__init__.py \
- monitor/config/__init__.py
+ monitor/dashboard/__init__.py \
+ monitor/dispatch/__init__.py
echo "===================END==================="
}