ltp: Fix duplicate names in list of failed tests.

Signed-off-by: Vinson Lee <vlee@twitter.com>
Fix the screen_dump error message bug in libvirt_vm.py

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
virt: Update config files when call virt_test_assistant

I use to call get_started script after autotest
update to have correct setup. Unfortunately, it
does not update config files in case sample version
changed. To ensure this, I have to delete these
config files to get them updated.

Here's patch that check if sample and used version
differ and print diff in case they do with question
to use this sample. It's a first version that just
replaces config file with sample. It's usable in 90%
of cases as I usualy modify only tests.cfg.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
tests.cgroup: Add cpuset.mems test

This test tests the memory pinning via cpuset.mems cgroup feature. It
changes cgroups with different node setting.

Signed-off-by: Lukas Doktor <ldoktor@redhat.com>
tests.cgroup: fix memory_move test

Minor fixes in memory_move test.

Signed-off-by: Lukas Doktor <ldoktor@redhat.com>
virt.guest-os.cfg.sample: WinXP variants: sp2, sp3

With MSDN iso names.

Signed-off-by: Lubos Kockman <lkockman@redhat.com>
cli/topic_common.py: print correct entry point name in usage

With recent entry points expansion, running
cli/autotest-rpc-client with no/incorrect arguments
results in incorrect usage message.

Signed-off-by: Martin Krizek <mkrizek@redhat.com>
cli.atest_unittest: Fix unittest failure

It appears that with ee404ba, as we move from static
executable name for atest, we are making a atest:
call to not return atest without the semicolon, breaking
one unittest. However, this unittest is clearly badly
written, as we are not supposed to call atest this way.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client/bin/optparse.py: rework options to improve usability

This patch groups related options for better help display, and removes
the '--debug' command line options.

The grouping of options make the help output of autotest-local easier
to read, IMHO.

By running autotest-local, and omitting '--verbose' we already get the
same behavior of the '--debug' command line option, so ditch it and be
more clear on the '--verbose' help message.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
autotest_local.py: separate parser creation

To make it easier for inherited classes to have their own custom
parsers without instantiating the ones on the parent class.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Fix the tap up fail problem on power arch.

 When we perform the tap up operation, we should pass a 18Byte(16B for the name
 and a 2B short int size for the flag 0x0001) ifreq struct to the ioctl
 function. If we have a 4B int size flag instead, there is no problem on a x86
 machine as it's little-endian arch, the first 2B is [01 00] coincidently the
 same as we have a short int size flag. but on a big-endian arch like power. the
 first 2B is [00 00], which is not correct for the operation. so just change the
 flag size to 2B.

Signed-of-by: Liu Sheng <liusheng@cn.ibm.com>
Make abort on client state mismatch configurable

This patch is a proposed solution for issue #255.

One frequent problem of people using the autotest server
is job aborts due to client state mismatches between
reboots, mainly differences among list of partitions
before and after reboot. In all cases so far the mismatch
is due to simple things like:

 * Presence/absence of cdrom drivers among different
   kernels
 * Difference among device naming. We did actually try
   to fix that in commit 78a07d5e, but not all clients
   may have blkid installed.

So far I haven't seen any case where autotest is aborting
the job in a legitimate context (ie, a context where we
might have a problem in the job itself). So let's make
the abort part optional, with defaults to False.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
apache: fix django rewrite rules with older httpd

httpd on FC16 (version 2.2) has a fairly old version of mod_rewrite and
per-directory rules don't work quite how I expected them to. Fix the changes
from commit a9d1f296fabec223b6e07374ce5ad8281ce151ca by moving the rewrite
rules back to global context, but specifying only the media/ bits we care about
in the django context.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
autotest.base_utils: Move virt.utils.Thread to common_lib

Move the class virt.utils.Thread to base_utils.InterruptedThread thus it can be used in general utils.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
autotest.common_lib: Add syncdata class to common_lib

Syncdata class allows to synchronize data between
multiple hosts and guests. It creates a server for
syncing data and hosts uses the server for data
synchronization.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.virt_utils: Add framework for multihost migration

Multihost migration framework makes multi host migration
guest with load easy. This patch also replaces old tests
for multihost migration with versions that use the
framework.

Multihost miration framework takes care of:
  - preparing environment before migration
  - preparing guest for migration on source and dest host
  - start guest
  - start work on guest
  - migration between hosts
  - check work on destination host
  - close guest
  - postprocess environment after migration

The framework also allow start multiple migration
independently in some time with multiple hosts and
different work on guests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Make job/client temporary directory

This patch adds test_tmp_dir option in COMMON section in
global_config.ini that, when set, would be assign to tmpdir of base_job
class.

Signed-off-by: Martin Krizek <mkrizek@redhat.com>