Avoid running CLI and connector tests in parallel

* Fix the test execution when parallel ctest jobs are configured
  via e.g. `CTEST_PARALLEL_LEVEL`
* See https://github.com/Martchus/syncthingtray/issues/116
This commit is contained in:
Martchus 2021-10-12 23:40:35 +02:00
parent 09d5c5589e
commit 6c23bb6e82
1 changed files with 5 additions and 0 deletions

View File

@ -43,3 +43,8 @@ include(TestTarget)
include(ShellCompletion)
include(Doxygen)
include(ConfigHeader)
# avoid running this test in parallel with other tests as it interferes with the connector test
if (META_MAIN_TEST_NAME)
set_tests_properties("${META_MAIN_TEST_NAME}" PROPERTIES RUN_SERIAL TRUE)
endif ()