1. 21 3月, 2016 18 次提交
  2. 20 3月, 2016 1 次提交
  3. 19 3月, 2016 13 次提交
  4. 18 3月, 2016 8 次提交
    • J
      tests: add schema test for default cache mode · adddaff1
      Jim Fehlig 提交于
      None of the existing domXML configs under tests/* specify a
      default cache mode since default generally means "use the
      hypervisor default" and is left unset by the various hypervisor
      drivers. Add a config to tests/domainschemadata that specifies
      cache='default'.
      adddaff1
    • J
      tests: add xlconfigdata to domainschematests · 1a01e879
      Jim Fehlig 提交于
      Include the XML files under tests/xlconfigdata in the domain
      schema tests
      1a01e879
    • J
      conf: Format disk pool part_separator attribute for running pool · efb5e46b
      John Ferlan 提交于
      Commit id '4f846170' added printing of a new field 'part_separator';
      however, neglected to do so when there was an "freeExtent" defined
      for the device (as there would be when the disk pool was started).
      
      This patch adjusts the logic to appropriately format the device path and
      if there the part_separator attribute.
      efb5e46b
    • J
      qemu: Move last error save/restore to qemuBuildNetCommandLine · 1019bf14
      John Ferlan 提交于
      Commit 'ef2ab8fd' moved just the virDomainConfNWFilterTeardown and left
      the logic to save/restore the current error essentially doing nothing
      in the error path for qemuBuildCommandLine.  So move it to where it
      was meant to be.
      
      Although the original code would reset the filter on command creation
      errors after building the network command portion and commit 'ef2ab8fd'
      altered that logic, the teardown is called during qemuProcessStop from
      virDomainConfVMNWFilterTeardown and that code has the save/restore
      last error logic, so just allow that code to handle the teardown rather
      than running it twice. The qemuProcessStop would be called in the failure
      path of qemuBuildCommandLine.
      1019bf14
    • M
      tests: Set PATH in each test · 363b401f
      Michal Privoznik 提交于
      Currently we spawn couple of binaries in our test suite.
      Moreover, we provide some spoofed versions of system binaries
      hoping that those will be executed instead of the system ones.
      For instance, for testing SSH socket we have written our own ssh
      binary for producing predictable results. We certainly don't want
      to execute the system ssh binary.
      However, in order to prefer our binaries over system ones, we
      need to set PATH environment variable. But this is done only at
      the Makefile level. So if anybody runs a test by hand that
      expects our spoofed binary, the test ends up executing real
      system binaries. This is not good. In fact, it's terribly wrong.
      The fix lies in a small trick - putting our build directory at
      the beginning of the PATH environment variable in each test.
      Hopefully, since every test has this VIRT_TEST_MAIN* wrapper, we
      can fix this at a single place.
      Moreover, while this removes setting PATH for our tests written
      in bash, it's safe as we are not calling anything ours that would
      require PATH change there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      363b401f
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
    • J
      driver: log missing modules as INFO, not WARN · 9a0c7f5f
      Jovanka Gulicoska 提交于
      Missing modules is a common expected scenario for most libvirt usage on
      RPM distributions like Fedora, so it doesn't really warrant logging at
      WARN level. Use INFO instead
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1274849
      9a0c7f5f
    • M
      admin: Add virAdmConnectLookupServer · b9a3ce95
      Martin Kletzander 提交于
      It does not have a suffix ByName because there are no other means of
      looking up the server and since the name is known, this should be the
      preferred one.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      b9a3ce95