diff options
author | Dan Radez <dradez@redhat.com> | 2016-07-01 18:01:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-07-01 18:01:24 +0000 |
commit | 9366d88b499d51369182c8fb04fa358ae6694844 (patch) | |
tree | 9ff2ef66ab095f04b283a495442988a33cb506d7 /ci/test.sh | |
parent | 4329294c99fd22b814aa8d7183e0e8de543ac5c5 (diff) | |
parent | 45fabbab6a4107df8a32f09045cf955afeb2e4ac (diff) |
Merge "Syntax updates and new tests"
Diffstat (limited to 'ci/test.sh')
-rwxr-xr-x | ci/test.sh | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -11,7 +11,7 @@ set -e # Make sure python dependencies are installed -for pkg in epel-release python34-devel python34-nose; do +for pkg in epel-release python34-devel python34-nose python-pep8; do if ! rpm -q ${pkg} > /dev/null; then if ! sudo yum install -y ${pkg}; then echo "Failed to install ${pkg} package..." @@ -25,12 +25,5 @@ if ! python3 -c "import coverage" &> /dev/null; then sudo easy_install-3.4 cover pushd ../build/ > /dev/null make python-tests -popd > /dev/null -pushd ../tests/ > /dev/null -percent=$(coverage3 report --include '*lib/python/*' -m | grep TOTAL | tr -s ' ' | awk '{ print $4 }' | cut -d % -f 1) -if [[ percent -lt 80 ]]; then - echo "Python Coverage: $percent" - echo "Does not meet 80% requirement" - exit 1 -fi +make python-pep8-check popd > /dev/null |