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:
Cole Robinson 2020-01-26 18:29:39 -05:00
parent 78c8aef75e
commit e784376699
236 changed files with 21 additions and 21 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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