diff options
author | Deepshikha khandelwal <dkhandel@redhat.com> | 2018-11-14 15:22:25 +0530 |
---|---|---|
committer | Deepshikha khandelwal <dkhandel@redhat.com> | 2018-11-14 15:22:25 +0530 |
commit | 7fcc234454dba71f601ae208885928c801058839 (patch) | |
tree | c27e59edd36f3d948a67e9b4f5e97378d7919205 /build-gluster-org | |
parent | f63e18dcffcfbff85ba71d1acbd473d3d6b12089 (diff) |
Fixes the bug in python-lint job
Change-Id: I28540b0c27db9afc710e7d4f0511866a13b97f91
Diffstat (limited to 'build-gluster-org')
-rw-r--r-- | build-gluster-org/scripts/python-lint.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-gluster-org/scripts/python-lint.sh b/build-gluster-org/scripts/python-lint.sh index b70ae0f..74fb9e1 100644 --- a/build-gluster-org/scripts/python-lint.sh +++ b/build-gluster-org/scripts/python-lint.sh @@ -15,11 +15,11 @@ pip install -I flake8 pylint # run flake8 flake8 . >"$RESULT/flake8-check.txt" -FLAKE_COUNT="$(wc -l < '$RESULT/flake8-check.txt')" +FLAKE_COUNT="$(wc -l < $RESULT/flake8-check.txt)" #run pylint find . -iname "*.py" | xargs pylint --output-format=text >"$RESULT/pylint-check.txt" -PYLINT_COUNT="$(egrep -wc 'R:|C:|W:|E:|F:' pylint-check.txt)" +PYLINT_COUNT="$(egrep -wc 'R:|C:|W:|E:|F:' $RESULT/pylint-check.txt)" #fail build if there's any pylint and flake8 related issues if [[ "$FLAKE_COUNT" -gt 0 && "$PYLINT_COUNT" -gt 0 ]]; then |