frontend.shared.resource_lib: Fix an incorrect super call

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils/run_pylint.py: Add another source of false positives

E1120 also gives lots and lots of false positives. Let's
suppress them.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
mirror: Fix wrong exception name and other minor errors

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tko.parsers.base: Fix wrong exception names

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.wb_kupdate: Fix undefined variable error

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.common_lib.base_job_unittest: Fix class method

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.common_lib.mail_unittest/mail: Fix import

import email works just as well and doesn't confuse
pylint.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.common_lib.test_utils.mock: Fix use of super on an old style class

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cli.topic_common_unittest: Rename test methods to avoid naming collision

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cli.job.py: Use getattr to make file more pylint friendly

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cli.acl.py: Use getattr to make file more pylint friendly

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server.source_kernel: Fix wrong argument passed to super() call

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server.frontend.py: Use getattr to make file more pylint friendly

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server.hosts.ssh_host: Remove unexpected param on run_grep() call

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server.self-test: Make tests runnable again

Change the way to import common autotest libs to follow
the rest of autotest convention, regain the ability of
running the test programs:

 * server/self-test/autotest_test.py
 * server/self-test/common.py
 * server/self-test/utils_test.py

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tko.parsers.test.templates: Fix scenario_package_common

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tko: Add two missing __init__.py files

That will allow some modules to be properly executed.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Make it possible to use another directory for test results

Make it possible to use another directory to store test
results. With this, user can choose either to:

1) Pass a flag --output_dir to autotest specifying results
2) Set it in global_config.ini
3) Do neither and autotest behaves as usual

Changes from v1:
 * Used --output_dir as the flag name rather than --result_dir.
   Had to keep underscores on the flag name since other flags
   of the autotest program do use this convention.

Changes from v2:
 * Fixed job_unittest.py accordingly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client/bin/autotest: mention control file in usage message

Signed-off-by: Alon Levy <alevy@redhat.com>
KVM test: Introduce blkdebug param to images

blkdebug files allow to inject errors in the block
subsystem, allowing more types of tests to be
executed. Now it is possible to set a blkdebug file
for an arbitrary image 'imagefoo' used just like this

drive_blkdebug_imagefoo = blkdebug/default.conf

The blkdebug files can be stored on the specific location:

client/tests/kvm/blkdebug

And then specified like the above. An example of debug
file can be seen here:

[inject-error]
state = "2"
event = "read_aio"
errno = "7"
immediately = "off"
once = "on"

[set-state]
state = "1"
event = "read_aio"
new_state = "2"

[set-state]
state = "2"
event = "read_aio"
new_state = "3"

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