1. 22 10月, 2013 8 次提交
    • Y
      541f5739
    • Y
      14384d26
    • L
      Mass PEP8 fix · 6b6a8794
      Lucas Meneghel Rodrigues 提交于
      From time to time, people are forgetting the little
      PEP8 details, and we have to fix them.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      6b6a8794
    • J
      virsh.is_dead(): Resolve timing condition · ba928f43
      John Ferlan 提交于
      Existing code didn't check for 'in shutdown' condition which led to
      odd timing issues in various tests where is_dead() was returning true
      during the "Trying to shutdown VM with shell command" path followed
      by code attempting a startup which would fail because you cannot start
      an already started guest.
      
      Rather than add 'in shutdown' to the list of things to check - I flipped
      the check to look for dead states and return true (per the comments).  I
      also note that 'no state' was returning False previously which could
      have caused false positives.
      
      Since the list of checked states could grow over time, I added a check
      for all currently known states and just print a message if a state
      is not known.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      ba928f43
    • X
      qemu.tests: small fix for qemu_iotests · eccb462d
      Xu Tian 提交于
      since qemu_iotests merged into tests/qemu_iotests, add param
      qemu_iotests_dir to set iotests root dir;
      And updated default git repo to qemu-kvm new repo;
      Signed-off-by: NXu Tian <xutian@redhat.com>
      eccb462d
    • E
      run: Setting --qemu_sandbox=on by default · 142f3e9a
      Eduardo Otubo 提交于
      This commit sets the Qemu sandboxing to 'on' by default. It allows the
      user to run all tests using this feature to catch missing system calls
      and providing more feedback to the general security of Qemu.
      Signed-off-by: NEduardo Otubo <otubo@linux.vnet.ibm.com>
      142f3e9a
    • F
      qemu.cfg.boot_from_device: Update bootindex. · c93b0945
      Feng Yang 提交于
      Not first index is 0, so update bootindex to 0, if we want to boot from it
      firstly.
      Signed-off-by: NFeng Yang <fyang@redhat.com>
      c93b0945
    • F
      qemu.tests.boot_from_device: Change vm.create() to preprocess_vm() · 9ba2d985
      Feng Yang 提交于
      In older code we did not update params for vm before creating it.
      So old VM is reused. So we will meet following error:
      15:42:02 ERROR| Exception escaping from test:
      Traceback (most recent call last):
        File "/usr/code/autotest/client/shared/test.py", line 426, in _exec
          _call_test_function(self.execute, *p_args, **p_dargs)
        File "/usr/code/autotest/client/shared/test.py", line 853, in _call_test_function
          raise error.UnhandledTestFail(e)
      UnhandledTestFail: Unhandled VMImageMissingError: CD image file not found: '/tmp/test.iso'
      [context: (run_boot_from_device) --> creating 'virt-tests-vm1']
      Traceback (most recent call last):
        File "/usr/code/autotest/client/shared/test.py", line 846, in _call_test_function
          return func(*args, **dargs)
        File "/usr/code/autotest/client/shared/test.py", line 299, in execute
          postprocess_profiled_run, args, dargs)
        File "/usr/code/autotest/client/shared/test.py", line 216, in _call_run_once
          *args, **dargs)
        File "/usr/code/autotest/client/shared/test.py", line 322, in run_once_profiling
          self.run_once(*args, **dargs)
        File "/usr/code/autotest/client/tests/virt/virt.py", line 139, in run_once
          run_func(self, params, env)
        File "/usr/code/autotest/client/shared/error.py", line 138, in new_fn
          return fn(*args, **kwargs)
        File "/usr/code/autotest/client/tests/virt/qemu/tests/boot_from_device.py", line 112, in run_boot_from_device
          vm.create()
        File "/usr/code/autotest/client/shared/error.py", line 138, in new_fn
          return fn(*args, **kwargs)
        File "/usr/code/autotest/client/tests/virt/virttest/qemu_vm.py", line 1769, in create
          raise virt_vm.VMImageMissingError(iso)
      VMImageMissingError: CD image file not found: '/tmp/test.iso'
      
      This patch could fix this.
      Signed-off-by: NFeng Yang <fyang@redhat.com>
      9ba2d985
  2. 21 10月, 2013 1 次提交
  3. 18 10月, 2013 16 次提交
  4. 16 10月, 2013 12 次提交
  5. 14 10月, 2013 3 次提交