Skip to content

Commit

Permalink
[Tests] Use existing ENABLE_SERVER_TESTS option in tests/XrdCl
Browse files Browse the repository at this point in the history
This was an oversight when adding the option in commit below.

Fixes: a5cfef7
  • Loading branch information
amadio committed Dec 12, 2024
1 parent 2c269c6 commit aef92e0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/XrdCl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ target_link_libraries(xrdcl-unit-tests

gtest_discover_tests(xrdcl-unit-tests TEST_PREFIX XrdCl::)

if(XRDCL_ONLY)
return()
endif()

execute_process(COMMAND id -u OUTPUT_VARIABLE UID OUTPUT_STRIP_TRAILING_WHITESPACE)

if (UID EQUAL 0)
if(NOT ENABLE_SERVER_TESTS)
return()
endif()

Expand Down

0 comments on commit aef92e0

Please sign in to comment.