X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=check;h=3c8c29275f40580006c4d7980edaeaf22a2886f3;hb=67bed0c2b94bf7431adc44a6218b175ad6dc333a;hp=1d67e2930db56c9987cb6f005ed8810743c63699;hpb=023b29d33f11292a18af7f81c593f9f1642b3818;p=vswitchperf.git diff --git a/check b/check index 1d67e293..3c8c2927 100755 --- a/check +++ b/check @@ -158,7 +158,8 @@ if [ -s $FILE_LIST ] ; then continue fi # run pylint and extract final rating - rating=`$PYLINT --rcfile $PYLINT_RC $pyfile 2>/dev/null | tail -n3 | grep rated | sed -e 's/^.*rated at \([0-9.]*\).*$/\1/'` + output=`$PYLINT --rcfile $PYLINT_RC $pyfile 2>/dev/null` + rating=`echo -e $output | tail -n3 | grep rated | sed -e 's/^.*rated at \([0-9.]*\).*$/\1/'` # evaluate and display aquired rating if [ "x$rating" == "x" ] ; then # rating is not available for files without python statements @@ -166,6 +167,7 @@ if [ -s $FILE_LIST ] ; then elif rating_is_ok $rating ; then printf " %-70s ${GREEN}%-6s${BLACK}\n" $pyfile "OK" else + echo -e "$output" | awk '/^*+ Module|^[A-Z]\:/' printf " %-70s ${RED}%-6s${BLACK}\n" $pyfile $rating fi done