- util/check-cocci
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
+doctest:
+ <<: *precheck_job
+ script:
+ - *configure
+ - *find_pytest
+ - export TOP_BUILDDIR=$(cat bin/tests/system/isctest/vars/.ac_vars/TOP_BUILDDIR)
+ - cd bin/tests/system/isctest
+ - >
+ "$PYTEST" --noconftest --doctest-modules
+ needs:
+ - job: autoreconf
+ artifacts: true
+
pylint:
<<: *precheck_job
needs: []
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: