mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
ci: run out-of-tree system tests with pytest runner
Out-of-tree builds are built in a directory that is different from source directory. The build directory doesn't contain the non-compiled test files from bin/tests/system which are the test cases required by the pytest runner. In order to run the system tests for out-of-tree build, copy over the contents (tests) of bin/tests/system/ from the source directory into the build directory. Then, it is possible to invoke the pytest runner inside the build directory.
This commit is contained in:
parent
8846877dfe
commit
d49d9ec80e
1 changed files with 1 additions and 2 deletions
|
|
@ -393,7 +393,7 @@ cross-version-config-tests:
|
|||
<<: *default_triggering_rules
|
||||
stage: system
|
||||
before_script:
|
||||
- test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}"
|
||||
- test -n "${OUT_OF_TREE_WORKSPACE}" && cp -r bin/tests/system/* "${OUT_OF_TREE_WORKSPACE}/bin/tests/system/" && cd "${OUT_OF_TREE_WORKSPACE}"
|
||||
- *setup_interfaces
|
||||
script:
|
||||
- *find_pytest
|
||||
|
|
@ -953,7 +953,6 @@ system:gcc:out-of-tree:
|
|||
artifacts: true
|
||||
<<: *base_image
|
||||
<<: *system_test_job
|
||||
<<: *system_test_legacy
|
||||
<<: *api_schedules_tags_triggers_web_triggering_rules
|
||||
|
||||
unit:gcc:out-of-tree:
|
||||
|
|
|
|||
Loading…
Reference in a new issue