For reference: If you install virt-test using the recommended procedure:

https://github.com/autotest/virt-test#linux-virtualization-tests-virt-test

And you want to check your tree with

tools/run_pylint.py -q

You'll end up tons of this message:

************* Module virt-test.git.qemu.tests.drive_mirror_continuous_backup
E0611:  3,0: : No name 'client' in module 'autotest'

This is a bogus error, due to a subtle bug in the autotest RPM. I was checking how to fix it, and turns out it is simple. You have to add in

/usr/lib/python2.7/site-packages/autotest/__init__.py

__all__ = ['client', 'common']
import client
import common

I am thinking that we can get that fixed in future versions of the autotest RPM, hence I'm copying cleber. For now, I am going to have this hack on my local install, as gross as it seems.

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to