CTest: since version 3.19.0, no tests are executed in dashboard client mode
Hello,
we are using ctest in dashboard mode ("-D Continous"), and since we updated to cmake version 3.19 the defined tests are not executed at all.
Checking the problem a bit further, I found out that the problem was introduced in version 3.19.0, as my tests showed that it does not exist in 3.18.5.
If the "-D Continuous" is removed from the ctest call, all tests are executed as expected.
Looking at the output that is generated when the error occurs, it seems that after executing the pretest script that we have, ctest skips the test execution and immediately tries to analyze the coverage and then uploads the result files.
/home/pstorz/git/cmake/cmake-build/bin/ctest --label-exclude broken --parallel 10 --repeat until-pass:2 -D Continuous
Site: Linux-Ubuntu 20.04.1 LTS-x86_64
Build name: 21.0.0~pre55.1b55d5c58.dirty
Create new tag: 20210205-1612 - Continuous
Updating the repository: /home/pstorz/git/bareos
Use GIT repository type
Old revision of repository is: 1b55d5c58e5ac66d2ba38a8564f6500e0ee5b994
The authenticity of host 'github.com (140.82.121.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
New revision of repository is: 1b55d5c58e5ac66d2ba38a8564f6500e0ee5b994
Gathering version information (one . per revision):
Found 1 locally modified files
There are modified or conflicting files in the repository
Update command failed: "/usr/bin/git" "fetch"
Configure project
Each . represents 1024 bytes of output
................................................
.. Size: 50K
. Size of output: 50K
Build project
Each symbol represents 1024 bytes of output.
'!' represents an error and '*' a warning.
.... Size of output: 4K
0 Compiler errors
0 Compiler warnings
Test project /home/pstorz/git/bareos/u20
PRETEST: running /home/pstorz/git/bareos/u20/systemtests/ctest_custom_pretest.sh script
PRETEST: running system tests on the sourcetree
PRETEST: executing /home/pstorz/git/bareos/u20/core/src/dird/bareos-dir -?
PRETEST: checking configured hostname (a2e4ff8a3613) ... OK
PRETEST: checking postgresql connection ... OK
Performing coverage
Cannot find any coverage files. Ignoring Coverage request.
Submit files
SubmitURL: https://cdash.bareos.org/submit.php?project=Bareos
Uploaded: /home/pstorz/git/bareos/u20/Testing/20210205-1612/Update.xml
Uploaded: /home/pstorz/git/bareos/u20/Testing/20210205-1612/Configure.xml
Uploaded: /home/pstorz/git/bareos/u20/Testing/20210205-1612/Build.xml
Uploaded: /home/pstorz/git/bareos/u20/Testing/20210205-1612/Done.xml
Submission successful
I hope that this information is helpful to find the problem. If something is still unclear, please ask.
Best regards,
Philipp