summaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-07-17 10:46:35 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-07-17 10:46:35 -0400
commit29ef7f6d62dcf6c4fec99d88c66f7e43e9d3e574 (patch)
tree977ae756f36e1b04fd9d3a41430bf6dd21120753 /git
parente0211ca67ce18fc9f74d0a9c82cf14a28f395e4d (diff)
parentd21eb80277c6b6eb720b74f4bc828c67fc142a22 (diff)
downloadopenshift-29ef7f6d62dcf6c4fec99d88c66f7e43e9d3e574.tar.gz
openshift-29ef7f6d62dcf6c4fec99d88c66f7e43e9d3e574.tar.bz2
openshift-29ef7f6d62dcf6c4fec99d88c66f7e43e9d3e574.tar.xz
openshift-29ef7f6d62dcf6c4fec99d88c66f7e43e9d3e574.zip
Merge pull request #357 from lhuard1A/fix_pylint.sh
Fix git/pylint.sh
Diffstat (limited to 'git')
-rwxr-xr-xgit/pylint.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/git/pylint.sh b/git/pylint.sh
index 86ea52d45..8666931e9 100755
--- a/git/pylint.sh
+++ b/git/pylint.sh
@@ -15,7 +15,9 @@ NEWREV=$2
PYTHON=/var/lib/jenkins/python27/bin/python
+set +e
PY_DIFF=$(/usr/bin/git diff --name-only $OLDREV $NEWREV --diff-filter=ACM | grep ".py$")
+set -e
FILES_TO_TEST=""
@@ -40,5 +42,7 @@ done
if [ "${FILES_TO_TEST}" != "" ]; then
echo "Testing files: ${FILES_TO_TEST}"
- ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc ${FILES_TO_TEST}
+ exec ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc ${FILES_TO_TEST}
+else
+ exit 0
fi