debian-forge-composer/internal/dnfjson
Achilleas Koutsou 5a01d6b339 dnfjson: skip dnf-json tests if dnf python module isn't available
On systems where `dnf` and the Python module aren't available, skip the
unit tests that call into the `dnf-json` script.
A test flag, `-force-dnf` is added to avoid this check and run the tests
unconditionally.  This is useful for cases where the sniff check might
fail for wrong reasons or, more importantly, for cases where we want to
be sure the tests are ran and consider a missing `dnf` module to be an
error state (e.g., in CI).
2022-06-01 11:36:52 +01:00
..
dnfjson.go rpmmd: add Repositories list to PackageSet struct 2022-06-01 11:36:52 +01:00
dnfjson_test.go dnfjson: skip dnf-json tests if dnf python module isn't available 2022-06-01 11:36:52 +01:00