autotest/virt-test — pull request #783 by clebergnu (2013-08-26 23:50:30+00:00)
Title: virt: tools/run_pylint: output format option bug

Long story short, pylint 1.0 drops some options and adds new ones.
This patch checks the pylint version and adds the formatting option
accordingly.

Unfortunately, pylint's documentation is really broken. The default
message format template is documented as:

--msg-template='{sigle}:{line:3d},{column}: {obj}: {msg}'

But the 'sigle' parameter simply does not exist. This patch uses
'{msg_id}' istead.

One thing this patch does not solve, though, is the conditional
formatting for the '{obj}' parameter, so you may notice a white
space followed by ':' in some of the messages (the ones that lack
reference to an object).

CC: Chris Evich
Signed-off-by: Cleber Rosa