Skip to content

Commit 67dc752

Browse files
committed
cmake, test: Disable tests instead of ignoring them
1 parent bb9157d commit 67dc752

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmake/tests.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Distributed under the MIT software license, see the accompanying
33
# file COPYING or https://opensource.org/license/mit/.
44

5-
if(TARGET Python3::Interpreter)
6-
add_test(NAME util_rpcauth_test
7-
COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py
8-
)
9-
endif()
5+
add_test(NAME util_rpcauth_test
6+
COMMAND Python3::Interpreter ${PROJECT_BINARY_DIR}/test/util/rpcauth-test.py
7+
)
8+
set_tests_properties(util_rpcauth_test PROPERTIES
9+
DISABLED $<NOT:$<TARGET_EXISTS:Python3::Interpreter>>
10+
)

0 commit comments

Comments
 (0)