mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 16:25:10 +03:00
setup: switch to running API coverage test using pytest
The API coverage test is no longer a special case. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
6feb31a7a1
commit
60044515a2
2
setup.py
2
setup.py
@ -309,8 +309,6 @@ class my_test(Command):
|
||||
else:
|
||||
os.environ["PYTHONPATH"] = self.build_platlib
|
||||
|
||||
if "LIBVIRT_API_COVERAGE" in os.environ:
|
||||
self.spawn([sys.executable, "sanitytest.py"])
|
||||
pytest = self.find_pytest_path()
|
||||
subprocess.check_call([pytest])
|
||||
|
||||
|
@ -430,6 +430,3 @@ class LibvirtAPICoverage(unittest.TestCase):
|
||||
usedfunctions = validate_c_to_python_api_mappings(finalklassmap, gotfunctions)
|
||||
validate_python_to_c_api_mappings(gotfunctions, usedfunctions)
|
||||
validate_c_api_bindings_present(finalklassmap)
|
||||
|
||||
test = LibvirtAPICoverage()
|
||||
test.test_libvirt_api()
|
Loading…
Reference in New Issue
Block a user