run_pylint.py: Ignore errors E0611 on pylint

Since they are mostly noise due to the different ways the
autotest libraries may be organized.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cgroup_tests: Fix py 2.4 invalid construct

It's illegal in python 2.4 to define classes like:

class MyClass():

Instead, make it inherit from object (new style class).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cgroup_test: Make user can run part of test cases

In the future there will be several test cases in cgroup_test
module, and they have no relationship. For now, these cases just
run integrally, user cannot run desired case. So I do some modify
to adapt this situation.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
cgroup_test: Add cpu high load test for cpu,cpuset system

1.Modify /etc/cgconfig.conf file to create 2 cgroups.
2.Execute a shell script on desired cpuset.cpus and cpuset.mems
  in each cgroup with different cpu.shares.
3.Compare 2 tasks' cpu rate.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Mass spelling fixes

Using the program codespell

https://github.com/lucasdemarchi/codespell

We were able to fix a lot of spelling mistakes in the
current docstrings, comments and logged messages. Of
course, the entries were verified, and some extra manual
corrections were made.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
PEP8 mass fixes

With the help of the PEP8 script, a semi-automated clean
of the code base was made, and effectively changing some
of the coding style rules of our code base:

 * No more 2 lines spacing among functions
 * No more combined module imports

In the end, it was going to be too difficult to take
into consideration E501 (line length > 80) errors and
W601 (.has_key() is deprecated), so these were ignored,
at least for now.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Mass docstring fix

Make virt-test to have a docstring style mostly compliant with
the sphinx's [1] format, reStructured text. This means that
we have to trade all '@' tags to be ':', mostly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Fixing the remaining PEP8 compliance problems

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>