README: Updated URLs to point at github

Signed-off-by: Chris Evich <cevich@redhat.com>
Revert "Added new paths included by recent multiarch changes"

This reverts commit 8296f4932abef2cc48b9a34bc5cf4a2b21e53bda.
This isn't the correct fix for the problem, which has been fixed by removing whitespace during parsing of ld.so.conf

Signed-off-by: Steve Conklin <sconklin@canonical.com>
Fix lib path detection by stripping whitespace

Trailing whitespace was causing the regex to fail, preventing
proper reading of the library paths

Signed-off-by: Steve Conklin <sconklin@canonical.com>
virtfs: Add support for proxy fs driver in virtfs

Also remove the kernel_cmdline parameter, Also remove
guest_kernel and guest_kernel_cmdline. All the above can be achived
using kernel and kernel_params config entries

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
VirtFS: remove feature that allows the selection of uid/gid of virt-proxy-helper and qemu

This feature, in its current state, brings a couple of regressions,
such as not dealing properly with image creation which leads to failure
when running qemu as a different user.

It's very desirable to have a full-blown implementation of user selection
for qemu and its helpers, so I'm openning an issue (#151):

    https://github.com/autotest/autotest/issues/151

Signed-off-by: Cleber Rosa <crosa@redhat.com>
VirtFS: Implement linking for qemu fs proxy binary (virtfs-proxy-helper)

Link that binary, just like it's done with other qemu-* binaries. Some
style and other minor fixes in the link code are included here.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
virt.libvirt_vm: Fix addition of serial port

Turns out we were not adding serial devices to the vms
being created with virt-install. Let's fix it so the
new serial-based method of unattended install works
for libvirt as well.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt test: Adjust Windows test set in tests.cfg.sample

It was generating 8 tests, due to the omission of
service pack level, and the vm was using way too much
memory by default.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.libvirt_vm: Use tail to follow the serial file

So we can actually get serial console results.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt test: Change finish.exe to finish.bat in unattended_install

Use finish.bat to send the finish signal after install instead of
finish.exe:
  - finish.exe will send signal through network, and sometimes it
will failed with network problem. Such as nic driver update will
cause the network invisible for a while, if finish.exe start in
the same time. The test will failed with 10093(socket init failed).
Move the finish signal send to a more stable way.

  - Some commands run after install may return before exit which
may make the commands failed to install or setup env as we expect.
Add a process check loop in finish.bat to make sure specific
process is finished before halt.

changes from v1:
  - add finish.bat
  - add commit comments

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Added async job to client

Logs are no longer delayed--they're written immediately. Also, the overridable kill function now takes no arguments

Implemented asynchronous job mixin for running on hosts

Changed nuke_subprocess to a plain os.kill() to avoid the sleep(1) in nuke_subprocess

example: autotest/server/tests/async/async.py
from autotest_lib.server import hosts, test

class async(test.test):
    version = 1

    def run_once(self, machine):
        # Designate a label for the server side tests.
        server = hosts.create_host(machine)

        job = server.run_async("sleep 1 && echo \"test1\" &&"
                               " sleep 3 && echo \"test2\"")

        print job.wait_for()

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Signed-off-by: David Greenberg <dsg123456789@gmail.com>
Made followfile failure detector run in another thread. It's not threadsafe, but it shaves off 5s/host on startup

Signed-off-by: David Greenberg <dsg123456789@gmail.com>
virt: Check illegal instruction code

Add a check on the base VM class for illegal
instruction code executed by the VM. That
check is performed on the serial console
output.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Add aliases to class Flag.

The patch solve problem with doubled  name of cpuflags
sse4_1, sse4.1 etc. in cpuflag test.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm test: Introduce multi_host.srv

We had migration_control.srv which worked with old
version of kvm config files (tests.cfg, subtest.cfg,
etc..). Because config files were changed this control
code stopped working.

This patch repairs this problem and renames the file
to the more correct and generic name multi-host.srv.
Also, added new configuration file tests-shared.cfg
which contains shared data among single host and multi
host tests.

The changes are useful for multihost tests, since
we can use a lot of configuration from regular single
host tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt deps: Reduces memory usage of test

This change is necessary because there is a
problem with network bandwidth during migration.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm test: Add multihost migration support to cpuflag test

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Update and enhance save_restore test

* Cleaned up subtest config comments and lifecycle varients

* Fixed a race condition between ssh session recovery and host tcp
  recovery.  Moral: Don't leave ssh sessions open during save/restore.

* Enhanced test to run backgrounded command on guest that dirties
  memory and keeps at least one CPU 99% busy in guest. Attempt
  made to stop background job when testing done. Warning issued if it
  will not be possible to kill the background process.

Note: Smoke-tested on f16 host fine, there's a problem/bug on
      RHEL hosts which I'm still tracking down.

Signed-off-by: Chris Evich <cevich@redhat.com>
utils.check_patch: Add log file

In order to record the result of an extensive check, add
a logging file handler to output the result of check_patch.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils.run_pylint: Remove import warnings

Since there are *way* too many false positives with
the system wide install work.

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