summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-01-12 15:55:00 +0800
committeryuyang <Gabriel.yuyang@huawei.com>2017-01-12 15:55:00 +0800
commit9f28a751ee342b77f653acbebfb10d6587af669a (patch)
tree5ab223ed6feafb40afc3f2e489adba9860aa13f1
parente1a54d34819563946d1ff1ec673d1d261b826ad8 (diff)
Add paths to flake8 style check
JIRA: BOTTLENECK-100 Add paths utils/ to flake8 style check and change tests.sh->verify.sh to make it self-explanatory Change-Id: I653dd4412633c026a47472abd25df021bcd093a4 Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
-rw-r--r--flake8_cfg1
-rwxr-xr-xverify.sh (renamed from tests.sh)6
2 files changed, 4 insertions, 3 deletions
diff --git a/flake8_cfg b/flake8_cfg
index 578c0556..14bff2ff 100644
--- a/flake8_cfg
+++ b/flake8_cfg
@@ -2,3 +2,4 @@
format = pylint
statistics = True
count = True
+show_source = True \ No newline at end of file
diff --git a/tests.sh b/verify.sh
index 18110770..1e0d0132 100755
--- a/tests.sh
+++ b/verify.sh
@@ -15,11 +15,11 @@ getopts ":f" FILE_OPTION
run_flake8() {
echo "Running flake8 ... "
- logfile=test_results.log
+ logfile=flake8_verify.log
if [ $FILE_OPTION == "f" ]; then
- sudo flake8 --append-config=flake8_cfg testsuites/posca/ > $logfile
+ flake8 --append-config=flake8_cfg testsuites/posca/ utils/ > $logfile
else
- sudo flake8 --append-config=flake8_cfg testsuites/posca/
+ flake8 --append-config=flake8_cfg testsuites/posca/ utils/
fi
if [ $? -ne 0 ]; then