Author: rinrab
Date: Wed Sep 18 12:12:52 2024
New Revision: 1920768

URL: http://svn.apache.org/viewvc?rev=1920768&view=rev
Log:
cmake: Exclude svneditor.py from tests, since it is just an internal script
for the test-suite and cannot be run as a test.

* CMakeLists.txt
  (pytests): Filter 'svneditor' test name.

Modified:
    subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/subversion/trunk/CMakeLists.txt?rev=1920768&r1=1920767&r2=1920768&view=diff
==============================================================================
--- subversion/trunk/CMakeLists.txt (original)
+++ subversion/trunk/CMakeLists.txt Wed Sep 18 12:12:52 2024
@@ -667,20 +667,22 @@ if(SVN_ENABLE_TESTS)
     # Keep `.py'.
     get_filename_component(py_test_name ${py_test_path} NAME_WLE)
 
-    add_test(
-      NAME
-        "cmdline.${py_test_name}"
-      COMMAND
-        "${Python3_EXECUTABLE}" 
"${CMAKE_CURRENT_SOURCE_DIR}/build/run_tests.py"
-        --bin ${CMAKE_CURRENT_BINARY_DIR}
-        --tools-bin ${CMAKE_CURRENT_BINARY_DIR}
-        --verbose
-        --log-to-stdout
-        --set-log-level=WARNING
-        ${CMAKE_CURRENT_SOURCE_DIR}
-        ${CMAKE_CURRENT_BINARY_DIR}
-        ${py_test_path}
-    )
+    if(NOT ${py_test_name} STREQUAL "svneditor")
+      add_test(
+        NAME
+          "cmdline.${py_test_name}"
+        COMMAND
+          "${Python3_EXECUTABLE}" 
"${CMAKE_CURRENT_SOURCE_DIR}/build/run_tests.py"
+          --bin ${CMAKE_CURRENT_BINARY_DIR}
+          --tools-bin ${CMAKE_CURRENT_BINARY_DIR}
+          --verbose
+          --log-to-stdout
+          --set-log-level=WARNING
+          ${CMAKE_CURRENT_SOURCE_DIR}
+          ${CMAKE_CURRENT_BINARY_DIR}
+          ${py_test_path}
+      )
+    endif()
   endforeach()
 endif()
 


Reply via email to