mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: Replace 'scriptimports' with a much simpler method
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -2,6 +2,11 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.gmo
|
*.gmo
|
||||||
|
|
||||||
|
virt-clonec
|
||||||
|
virt-convertc
|
||||||
|
virt-imagec
|
||||||
|
virt-installc
|
||||||
|
|
||||||
/.coverage
|
/.coverage
|
||||||
/MANIFEST
|
/MANIFEST
|
||||||
|
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -420,7 +420,6 @@ class CheckPylint(Command):
|
|||||||
|
|
||||||
print "running pep8"
|
print "running pep8"
|
||||||
cmd = "pep8 "
|
cmd = "pep8 "
|
||||||
cmd += "--exclude scriptimports "
|
|
||||||
cmd += " ".join(files)
|
cmd += " ".join(files)
|
||||||
os.system(cmd + " --config tests/pep8.cfg")
|
os.system(cmd + " --config tests/pep8.cfg")
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
# MA 02110-1301 USA.
|
# MA 02110-1301 USA.
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
|
import imp
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shlex
|
import shlex
|
||||||
@@ -27,9 +28,13 @@ import StringIO
|
|||||||
|
|
||||||
import virtinst.cli
|
import virtinst.cli
|
||||||
|
|
||||||
from tests.scriptimports import virtinstall, virtimage, virtclone, virtconvert
|
|
||||||
from tests import utils
|
from tests import utils
|
||||||
|
|
||||||
|
virtinstall = imp.load_source("virtinstall", "virt-install")
|
||||||
|
virtimage = imp.load_source("virtimage", "virt-image")
|
||||||
|
virtclone = imp.load_source("virtclone", "virt-clone")
|
||||||
|
virtconvert = imp.load_source("virtconvert", "virt-convert")
|
||||||
|
|
||||||
os.environ["VIRTCONV_TEST_NO_DISK_CONVERSION"] = "1"
|
os.environ["VIRTCONV_TEST_NO_DISK_CONVERSION"] = "1"
|
||||||
os.environ["LANG"] = "en_US.UTF-8"
|
os.environ["LANG"] = "en_US.UTF-8"
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ profile=no
|
|||||||
|
|
||||||
# Add files or directories to the blacklist. They should be base names, not
|
# Add files or directories to the blacklist. They should be base names, not
|
||||||
# paths.
|
# paths.
|
||||||
ignore=scriptimports
|
#ignore=
|
||||||
|
|
||||||
# Pickle collected data for later comparisons.
|
# Pickle collected data for later comparisons.
|
||||||
persistent=yes
|
persistent=yes
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../../virt-clone
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../virt-convert
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../virt-image
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../virt-install
|
|
||||||
Reference in New Issue
Block a user