pki
pki copied to clipboard
Add pytests to CMake Test matrix
This patch:
-
includes pytests under tests/python/ dir in the CMake test matrix. Though the unit tests exited, they were never executed.
-
Fixes the deprecated pytest methods.
Note
The pytests were added to the CMake test matrix instead of adding them to the spec file. This ensures that the pytests are executed in other platforms (Debian).
Signed-off-by: Dinesh Prasanth M K <[email protected]>
Hmmm. pytest fails because it fails to access the modules.. The packages are not installed yet and so, the test fails. Any thoughts? @edewata @cipherboy
digging deeper, this can be achieved using tox. We have several setup.py
files lying around and I will resubmit this PR after cleaning them up.
The only caveat is that, it's difficult for me to add this to CMake. Do you oppose executing pytest in spec files?