shared.unattended: Update the unattended files

Update the format of unattended files. Add some commands for
Windows test enviroment prepare. Also enlarge the Windows
image size to 30G as we will install more package inside the guests.

For the RHEL guests ks, we update some package that we needed. And
start X when guest booted up.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
test.cfg: Add some sub test in unattended install

Add some sub test in unattended install.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt: Replace Versionable class with new version.

new version
pros) multiple version of class in one process
      change version of class by parameters passed by class factory.
      support of pickling.
cons) It is necessary use factory and line with registration of module.
      For access to specific class version is necessary to use class
      manager.

usage:
  from versionable_class import Manager, factory, VersionableClass
  #register module to class manager. Necessary for pickling.
  man = Manager(__name__)

  class VM1(object):
    @classmethod
    def _is_right_ver(cls, version):
        return True

    def __init__(self, *args, **kargs):
        super(VM1, self).__init__(*args, **kargs)

    def fn1(self):
        print "fn1_VM1"

class VM_container(test_vers.VersionableClass):
    __master__ = VM1

o = test_vers.factory(VM_container)   # return class
o = o()    # create instance of class
o.fn1()

Already used by openvswitch.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds compatibility with new versionable class.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
qemu_vm: Update qemu_binary to be able to use LD_LIBRARY_PATH

Signed-off-by: Swapna Krishnan <skrishna@redhat.com>
Removing spice_common as it's obsolete
tests.mac_change : change mac when the interface is active

this patch make the mac_change test support changing mac when the
interface is active
this patch also modify the method of get drive number of win_utils

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #658 from humanux/mac_change_v1

tests.mac_change : change mac when the interface is active
qemu.tests.virtio_console: Raise correct exception

virtio_console catches exceptions and raises TestFail when unknown
exception occurs (because any Shell/... exception usually means
test failure.

Anyway it should raise TestError and TestNAError in case they occurs.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
share.cfg: disable xfstests on old RHEL OSes dont have xfs support

and add xfsprogs in RHEL-6 ks

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Merge pull request #623 from ypu/unatteded

Unatteded install improvement and bug fix
tests.boot: Support multi VMs

Signed-off-by: Feng Yang <fyang@redhat.com>
virt: Fix bug in cart config.

 - "aaaa":
could cycle for ever.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virttest: Correct default sysfs_dir parameter

update sys -> /sys

Signed-off-by: Feng Yang <fyang@redhat.com>
virt: Modify cgroup service control function

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
autotest_regression: Too few arguments for format string

Fix TypeError: not enough arguments for format string

Found by PyCharm inspection.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest_regression: replace error.ValueError with ValueError

I think we mean ValueError here, I couldn't find any error.ValueError.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest_regression: move copy of install-autotest-server*log outside try/except

We need the install log file to debug any error, so move it outside the
try/except, otherwise any errors will trigger aexpect.ShellCmdError and
skip the copy

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Merge pull request #578 from FengYang/cpu_hotplug

qemu.tests.cpu_hotplug: Make cpu hotplug command configurable.
virttest: enhanced run_autotest function

changes:
   1. increased default timeout values when execute commands in guest;
   2. instread result files one by one to copy results tarball
   3. cleanup autotest subprocess after guest test done

Signed-off-by: Xu Tian <xutian@redhat.com>

rollback utils_test

Signed-off-by: Xu Tian <xutian@redhat.com>