From 60044515a256c36afad0fc5efcb7ea946eb93783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 22 Mar 2022 18:27:15 +0000 Subject: [PATCH] setup: switch to running API coverage test using pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API coverage test is no longer a special case. Signed-off-by: Daniel P. Berrangé --- setup.py | 2 -- sanitytest.py => tests/test_api_coverage.py | 3 --- 2 files changed, 5 deletions(-) rename sanitytest.py => tests/test_api_coverage.py (99%) diff --git a/setup.py b/setup.py index a6a53bb..d4b218d 100755 --- a/setup.py +++ b/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]) diff --git a/sanitytest.py b/tests/test_api_coverage.py similarity index 99% rename from sanitytest.py rename to tests/test_api_coverage.py index 8f02cdf..c922df2 100644 --- a/sanitytest.py +++ b/tests/test_api_coverage.py @@ -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()