mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 02:04:13 +03:00
tests: Add explicit test_dist target
Things like po validation don't need to be done on every test run
This commit is contained in:
parent
98d880a179
commit
4205272384
11
setup.py
11
setup.py
@ -498,7 +498,7 @@ class TestCommand(TestBaseCommand):
|
||||
'''
|
||||
Finds all the tests modules in tests/, and runs them.
|
||||
'''
|
||||
excludes = ["test_urls.py", "test_inject.py"]
|
||||
excludes = ["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
|
||||
@ -556,6 +556,14 @@ class TestInitrdInject(TestBaseCommand):
|
||||
TestBaseCommand.run(self)
|
||||
|
||||
|
||||
class TestDist(TestBaseCommand):
|
||||
description = "Tests to run before cutting a release"
|
||||
|
||||
def run(self):
|
||||
self._testfiles = ["tests.dist"]
|
||||
TestBaseCommand.run(self)
|
||||
|
||||
|
||||
class CheckPylint(distutils.core.Command):
|
||||
user_options = [
|
||||
("jobs=", "j", "use multiple processes to speed up Pylint"),
|
||||
@ -672,6 +680,7 @@ distutils.core.setup(
|
||||
'test_ui': TestUI,
|
||||
'test_urls': TestURLFetch,
|
||||
'test_initrd_inject': TestInitrdInject,
|
||||
'test_dist': TestDist,
|
||||
},
|
||||
|
||||
distclass=VMMDistribution,
|
||||
|
@ -53,9 +53,9 @@ def _find_py(dirname):
|
||||
return ret
|
||||
|
||||
|
||||
class TestMisc(unittest.TestCase):
|
||||
class TestDist(unittest.TestCase):
|
||||
"""
|
||||
Miscellaneous tests
|
||||
Tests to run before release
|
||||
"""
|
||||
def _check_modules(self, files):
|
||||
for f in files:
|
Loading…
x
Reference in New Issue
Block a user