tests-spice.cfg.sample: fixed typo

* ice_x509_dirice_x509_dir = yes -> spice_x509_dir = yes

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
virt: Repair bug in speed limiting of scp.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.kvm_installer: Don't fail a test if virtfs_proxy is not defined

This userspace program is not shipped on a regular qemu source
code checkout, so its absence doesn't need to fail a test.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.virt_env_process: Reorganize screendump thread termination

Simplify the check for screendump termination thread event,
and also avoid a bug where we try to set a delay to a None
object.

Fixes the following bug that happens when running the
multi-disk test:

 Exception in thread Thread-1:
 Traceback (most recent call last):
   File "/usr/lib64/python2.7/threading.py", line 551, in
__bootstrap_inner
     self.run()
   File "/usr/lib64/python2.7/threading.py", line 504, in run
     self.__target(*self.__args, **self.__kwargs)
   File
"/home/lmr/Code/autotest.git/autotest/client/virt/virt_env_process.py",
line 549, in _take_screendumps
     _screendump_thread_termination_event.wait(delay)
 AttributeError: 'NoneType' object has no attribute 'wait'

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
contrib/install-autotest-server.sh: Fetch autotest instead of cloning it

Ray Spear <ray.spear@hp.com> reported that
f541fd43601f64205c990765db15870cdc86461c introduced a
regression when installing the autotest server from
scratch:

15:14:48 INFO | Setting autotest user password
15:14:48 INFO | Cloning autotest repo in /usr/local
15:14:48 INFO | Trying clone via git
fatal: destination path 'autotest' already exists and is not an empty
directory.

So, instead of just clone the tree using git clone, init
a git repo in there and fetch from upstream. Later on if
people want, we could make the tree/branch configurable.

Thanks to Ray for having reported the problem.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
contrib/install-autotest-server.sh: Fix autotest dir permissions

Since now we're using /usr/local/autotest as a home dir,
it is created by default with permissions 700. Change it
to 775 so apache can stat and serve its contents.

Tested on an F16, from scratch install of the autotest
server, worked fine.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
KVM Test: subtests.cfg.sample: Split virtio_console into multiple variants

Splits virtio_console test into smaller logical bundles of test variants.

Added variants:
* smoke (should always work)
* basic (should always work)
* performance (needed only for perf regression testing)
* destructive (those are tricky)
* migration (migration-related tests)
* hotplug (hotplug-related tests)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt/tests add negative_create.py for qemu/spice negative testing

* pass when vm.create() raises VMCreateError, otherwise raises
  VMCreateSuccess

* required by spiceqa negative testing

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
tests/kvm/tests-spice.cfg: added bad values for spice.* variants

* used by virt/tests/negative_create.py
* removed spice_port duplicate definition from file which could
  cause unexpected behaviour

Signed-off-by: Lubos Kocman <lkocman@redhat.com>