Improve test config/code for better test coverage in CI (#49)

* Improve test detection of other-bitness installation status

* Install capstone-windows in CI for better test coverage

---------

Co-authored-by: clement rouault <clement.rouault@exatrack.com>
This commit is contained in:
hakril
2024-05-14 20:56:50 +02:00
committed by GitHub
parent e3bcde7d63
commit d8b2770046
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ jobs:
py -${{ matrix.python-version}}-32 setup.py install
py -${{ matrix.python-version}}-64 setup.py install
- name: Installing pytest
run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pip install pytest
- name: Installing pytest & capstone-windows
run: py -${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}} -m pip install pytest capstone-windows
# Testing
- name: Testing
+1 -1
View File
@@ -53,7 +53,7 @@ def check_injected_python_installed(request):
raise ValueError("Could not find the fixture name of the injected python")
procparam = procparams[0]
proc = request.getfixturevalue(procparam)
if not python_is_installed[proc.bitness]:
if not windows.injection.find_python_dll_to_inject(proc.bitness):
pytest.skip("Python {0}b not installed -> skipping test with python injection into {0}b process".format(proc.bitness))
return None