mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
tests: Rename all test files to have test_ prefix
This will help for a possible future conversion to pytest Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
78c8aef75e
commit
e784376699
12
setup.py
12
setup.py
@ -516,18 +516,18 @@ class TestCommand(TestBaseCommand):
|
||||
'''
|
||||
Finds all the tests modules in tests/, and runs them.
|
||||
'''
|
||||
excludes = ["dist.py", "test_urls.py", "test_inject.py"]
|
||||
excludes = ["test_dist.py", "test_urls.py", "test_inject.py"]
|
||||
testfiles = self._find_tests_in_dir("tests", excludes)
|
||||
|
||||
# Put clitest at the end, since it takes the longest
|
||||
# Put test_cli at the end, since it takes the longest
|
||||
for f in testfiles[:]:
|
||||
if "clitest" in f:
|
||||
if "test_cli" in f:
|
||||
testfiles.remove(f)
|
||||
testfiles.append(f)
|
||||
|
||||
# Always want to put checkprops at the end to get accurate results
|
||||
# Always want to put test_checkprops at the end to get accurate results
|
||||
for f in testfiles[:]:
|
||||
if "checkprops" in f:
|
||||
if "test_checkprops" in f:
|
||||
testfiles.remove(f)
|
||||
if not self.testfile:
|
||||
testfiles.append(f)
|
||||
@ -593,7 +593,7 @@ class TestDist(TestBaseCommand):
|
||||
description = "Tests to run before cutting a release"
|
||||
|
||||
def run(self):
|
||||
self._testfiles = ["tests.dist"]
|
||||
self._testfiles = ["tests.test_dist"]
|
||||
TestBaseCommand.run(self)
|
||||
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-centos65-label.iso"/>
|
||||
<source file="tests/data/cli/fake-centos65-label.iso"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
@ -39,7 +39,7 @@
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-fedora17-tree.iso"/>
|
||||
<source file="tests/data/cli/fake-fedora17-tree.iso"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
@ -29,7 +29,7 @@
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-no-osinfo.iso"/>
|
||||
<source file="tests/data/cli/fake-no-osinfo.iso"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
@ -34,7 +34,7 @@
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-f26-netinst.iso"/>
|
||||
<source file="tests/data/cli/fake-f26-netinst.iso"/>
|
||||
<target dev="sda" bus="sata"/>
|
||||
<readonly/>
|
||||
</disk>
|
@ -38,7 +38,7 @@
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-win7.iso"/>
|
||||
<source file="tests/data/cli/fake-win7.iso"/>
|
||||
<target dev="sda" bus="sata"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
@ -113,7 +113,7 @@
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu"/>
|
||||
<source file="tests/data/clitest/fake-win7.iso"/>
|
||||
<source file="tests/data/cli/fake-win7.iso"/>
|
||||
<target dev="sda" bus="sata"/>
|
||||
<readonly/>
|
||||
</disk>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user