debian-forge/tools
Achilleas Koutsou 562d30cf59 tools/test: shell out to python3 to check for libdnf5
We run tests using tox to set up environments for different python
versions to test against.  The problem is that when a test shells out to
a python script, like osbuild-depsolve-dnf5, it's not run inside the
environment but in the system environment.  The `has_dnf5()` check
returns False because it fails to import dnf5 in the tox environment,
even though the script can be run and the test will succeed.

Use `python3 -c "import libdnf5"` to decide if the script is runnable
instead of using `importlib`.  This doesn't solve the problem of our
tests running python scripts in a different environment than the one (we
think) we are testing, but it will enable tests of osbuild-depsolve-dnf5
for now.
2024-04-23 07:42:09 +02:00
..
test tools/test: shell out to python3 to check for libdnf5 2024-04-23 07:42:09 +02:00
check-runners tools: add "tools" dir to LINTABLES and fix issues 2023-11-13 10:10:12 +01:00
check-snapshots check-snapshots: add log info when a download fails 2024-02-20 14:52:23 -08:00
gen-stage-test-diff tools: make gen-stage-test-diff pylint clean 2024-02-20 14:52:23 -08:00
inline-source.py tools: add inline-source.py 2021-05-12 14:26:16 +02:00
lorax-template-pkgs.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
osbuild mpp: combine depsolve and import into mpp.py 2021-06-30 20:26:07 +01:00
osbuild-depsolve-dnf tools: fix error when releasever cannot be found 2024-04-18 10:17:22 +02:00
osbuild-depsolve-dnf5 osbuild-depsolve-dnf5: Handle null transactions and exclude-specs 2024-04-23 07:42:09 +02:00
osbuild-dev lint: explicit check 2024-03-05 16:10:27 +01:00
osbuild-json-seq-progress-example-renderer tools: add example json-seq render based on tqdm 2024-03-12 16:44:12 +01:00
osbuild-mpp osbuild-mpp: Expend information in PkgInfo 2024-04-03 10:29:49 +02:00
set-env-variables.sh tools: add set-env-variables.sh 2022-04-13 14:57:27 +02:00
tree-diff tools/tree-diff: make its output stable 2023-08-08 12:41:17 +02:00