- PYTHON="$(source bin/tests/system/conf.sh; echo $PYTHON)"
- test -x "$PYTHON"
+.find_pytest: &find_pytest
+ - PYTEST="$(source bin/tests/system/conf.sh; echo $PYTEST)"
+ - test -x "$PYTEST"
+
.parse_tsan: &parse_tsan
- find -name 'tsan.*' -exec "$PYTHON" util/parse_tsan.py {} \;
before_script:
- test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}"
- *setup_interfaces
+ script:
+ - *find_pytest
+ - cd bin/tests/system
+ - >
+ "$PYTEST" --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "$TEST_PARALLEL_JOBS" --dist loadscope | tee pytest.out.txt
+ - '( ! grep -F "grep: warning:" pytest.out.txt )'
+ after_script:
+ - awk '/^=+ FAILURES =+/{flag=1;next}/^=+.*=+$/{flag=0}flag' bin/tests/system/pytest.out.txt || true
+ - awk '/^=+ ERRORS =+/{flag=1;next}/^=+.*=+$/{flag=0}flag' bin/tests/system/pytest.out.txt || true
+
+.system_test_legacy: &system_test_legacy
script:
- cd bin/tests/system
- make -j${TEST_PARALLEL_JOBS:-1} -k check V=1
<<: *system_test_common
artifacts:
untracked: true
+ exclude:
+ - "**/__pycache__/**/*"
when: always
reports:
junit: junit.xml
<<: *system_test_common
artifacts:
untracked: true
+ exclude:
+ - "**/__pycache__/**/*"
when: always
.system_test_tsan: &system_test_tsan_job
<<: *system_test_common
after_script:
- - cat bin/tests/system/test-suite.log
+ - awk '/^=+ FAILURES =+/{flag=1;next}/^=+.*=+$/{flag=0}flag' bin/tests/system/pytest.out.txt || true
+ - awk '/^=+ ERRORS =+/{flag=1;next}/^=+.*=+$/{flag=0}flag' bin/tests/system/pytest.out.txt || true
- find bin/tests/system -name "*dig.*" | xargs grep "error" || true
- *find_python
- *parse_tsan
"$PYTHON" bin/tests/convert-trs-to-junit.py . > "$CI_PROJECT_DIR"/junit.xml
artifacts:
untracked: true
+ exclude:
+ - "**/__pycache__/**/*"
when: always
reports:
junit: junit.xml
artifacts: true
<<: *base_image
<<: *system_test_job
+ <<: *system_test_legacy
<<: *api_schedules_tags_triggers_web_triggering_rules
unit:gcc:out-of-tree:
system:clang:openbsd:amd64:
<<: *openbsd_amd64_image
<<: *system_test_job
+ <<: *system_test_legacy
<<: *api_schedules_triggers_web_triggering_rules
variables:
USER: gitlab-runner