Run doctests for the isctest module in a dedicated CI job.
- util/check-cocci
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
+doctest:
+ <<: *precheck_job
+ needs: []
+ script:
+ - *configure
+ - meson compile -C build system-test-init
+ - *find_pytest
+ - cd bin/tests/system/isctest
+ - >
+ "$PYTEST" --noconftest --doctest-modules
+
pylint:
<<: *default_triggering_rules
<<: *debian_sid_amd64_image
def feature_test(feature):
- feature_test_bin = os.environ["FEATURETEST"]
+ feature_test_bin = os.environ.get("FEATURETEST")
+ if not feature_test_bin: # this can be the case when running doctest
+ return False
try:
subprocess.run([feature_test_bin, feature], check=True)
except subprocess.CalledProcessError as exc: