fixup! virt: Rewrite network/nic management

Signed-off-by: Chris Evich <cevich@redhat.com>
client: Don't create tests/download directory unless needed

job.run_test() may take a url parameter, that usually
is the test name, however it can take an actual url
with a .tar.bz2 test. However, if we're not going to
use this feature, this directory is not needed, and if
needed, the directory will be created by the install
from url code.

Therefore, remove this to better comply with packaging
requirements (people might feel uneasy about autotest
creating directories on python site-packages dir in a
compulsory way). Update the job unittest accordingly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client job: Make packages dir configurable

This patch adds pkg_dir option in COMMON section in
global_config.ini that, when set, would be assign to
pkgdir attribute of the base_job class.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client job: Make state file directory configurable

On a system wide install, it is undesirable that the
control file state files are located in the same directory
as the control files, since that location will be read
only for non root users, for example:

/usr/lib/python2.7/site-packages/autotest/client/tests/sleeptest/control.state

So make this directory configurable, hence allowing autotest
to write job state files there on a system wide install
yet leaving non root users able to run jobs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Fixing a couple of wrong unittest imports

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Fix the wrong import usage in the unittest code

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
contrib/install-autotest-server.sh: Fix typo and help string

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.tests.selftest: Use keyword arguments on test methods

As the use of positional arguments in job.run_test is not
supported anymore.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.shared.base_barrier: Remove useless error logging

As it was going to print the string representation of
the error module, not very useful for anyone.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.self-test: Remove old, bitrot functional test suite

The client functional test suite is long bitrot, due to
a number of changes made in autotest output. I did try
to try to filter outputs to adjust things, but turns out
it's too quirky and it doesn't work always. Let's remove
this and continue to focus on unittest development.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server.self-test: Remove old, bitrot test suite

All the unittests in here are better implemented
in the base autoserv directory, and others are very
outdated. So let's get rid of it and continue to
focus on unittests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
contrib/install-autotest-server.sh: Fix locale and help msg

1) Set en.US locale
2) Fix slightly misleading help message
3) Set the autotest user $HOME to be /usr/local/autotest

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
virt: Add ubuntu 12.04 to guest os list

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Merge branch 'master' of git://github.com/autotest/autotest into virt_net_rewrite