cmake, test: Disable tests instead of ignoring them

This commit is contained in:
Hennadii Stepanov committed 2025-07-01 10:50:55 +01:00
1 parent bb9157db5d
commit 67dc7523f3
1 file changed
+5 -4
+5 -4
View File
@@ -2,8 +2,9 @@
# Distributed under the MIT software license, see the accompanying # Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit/. # file COPYING or https://opensource.org/license/mit/.
if(TARGET Python3::Interpreter) add_test(NAME util_rpcauth_test
add_test(NAME util_rpcauth_test
COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py
) )
endif() set_tests_properties(util_rpcauth_test PROPERTIES
DISABLED $<NOT:$<TARGET_EXISTS:Python3::Interpreter>>
)