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:
Tom Krizek 2023-08-08 13:23:20 +02:00
parent 8846877dfe
commit d49d9ec80e
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View file

@ -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: