virt-manager/virtconv
Michal Privoznik 58ac786b6b virt-convert: Don't detect existing paths in test suite
We have this option --dry-run that should run through the
installation process but don't actually touch anything. Just
pretend the installation. And we have a test that uses it
heavily. However, the test is failing:

  Traceback (most recent call last):
    File "/home/zippy/work/virt-manager.git/tests/clitest.py", line 161, in _launch_command
      ret = virtconvert.main(conn=conn)
    File "virt-convert", line 111, in main
      destdir=options.destination, dry=options.dry)
    File "/home/zippy/work/virt-manager.git/virtconv/formats.py", line 314, in convert_disks
      newpath)
  RuntimeError: New path name '/var/lib/libvirt/images/fedora.qcow2' already exists

Problem is, even in test suite we really touch the host paths.
This in general will spit unpredictable results. Resolution
consists of making this specific part of the code fault tolerant
if ran under test suite.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-01-15 11:42:37 -05:00
..
__init__.py virt-convert: Reimplement it 2014-02-07 21:16:09 -05:00
formats.py virt-convert: Don't detect existing paths in test suite 2016-01-15 11:42:37 -05:00
ovf.py translation: fix wrong usage of _() function 2015-06-05 16:33:51 -04:00
vmx.py pep8 W503: line break before binary operator 2015-07-14 13:01:20 -04:00