1. 12 12月, 2013 6 次提交
  2. 11 12月, 2013 14 次提交
  3. 10 12月, 2013 4 次提交
    • H
      virttest: Fix network xml sync with state unchanged · 6b371392
      Hao Liu 提交于
      When using original sync of NetworkXML class to restore a backup
      network, it is redefined and started, leaving autostart disabled.
      This is not the default setting (all true for active/persistent/
      autostart) for the network.
      
      In this modification, we set the default behavior of sync to
      set all state to true. With the help of an optional "state" dict
      parameter, we can restore the network to any state you like, or
      in practical, to the state we backed up.
      
      To facilitate this backup & restore process, I also added a helper
      function state_dict() to retrieve a active/persistent/autostart
      dict for backing up current vm state.
      
      The unittest for these network manipulators is given in a new file
      instead of libvirt_xml_unittest.py to separate manipulator tests
      from XML base test.
      
      Furthermore, The net_state_dict function use an outdated way to get
      the persistent property for the network, which is already changed
      by a patch (commit 895913d) in libvirt-0.10.2. The persistent status
      can be retrieved from net_list directly. So I add a condition to
      ensure it can be backported for older libvirt while avoiding
      redundant call of net_autostart when testing on new libvirt.
      
      This backport can be removed if old libvirt no longer maintained.
      Signed-off-by: NHao Liu <hliu@redhat.com>
      6b371392
    • L
      Merge pull request #1214 from autotest/restart-vm · 7a4fb154
      Lucas Meneghel Rodrigues 提交于
      virttest.env_process: Remove restart_vm option
      7a4fb154
    • L
      virttest.env_process: Remove restart_vm option · 3cf2c8a3
      Lucas Meneghel Rodrigues 提交于
      The restart_vm option, that will restart a vm at the beginning
      of postprocessing, is unnecessary, given that you could
      simply shut down all the VMs at the end of each test,
      forcing new vms to be started.
      
      So get rid of this option, and replace --restart-vm
      in ./run to use kill_vm = yes instead.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      3cf2c8a3
    • J
      virsh_start: Need to ensure stopped before run · b4a9ad11
      John Ferlan 提交于
      When run after virsh.shutdown, the first virsh.start was failing with
      because the domain was already started.  Adjusted the .cfg file to
      ensure setting of the 'kill_vm_before_test' in the status_error_no
      variant.
      
      Also, changed the error returned from using 'stdout' to 'stderr' so that
      "Domain is already active" would be displayed.
      b4a9ad11
  4. 09 12月, 2013 2 次提交
  5. 07 12月, 2013 3 次提交
  6. 06 12月, 2013 6 次提交
  7. 05 12月, 2013 5 次提交