Skip to content

Commit

Permalink
Only run validate_automatus_metadata on Python 3.9+
Browse files Browse the repository at this point in the history
The script uses root_dir which is in 3.10+
  • Loading branch information
Mab879 committed Jun 12, 2024
1 parent ef14d8c commit c568529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ if(PYTHON_VERSION_MAJOR GREATER 2)
set_tests_properties("utils-build_control_from_reference_sanity" PROPERTIES DEPENDS "test-rule-dir-json")
endif()

if(PYTHON_VERSION_MAJOR GREATER 2)
if(PYTHON_VERSION_MAJOR GREATER 2 AND PYTHON_VERSION_MINOR GREATER 9)
add_test(
NAME "validate_automatus_metadata"
COMMAND env "PYTHONPATH=$ENV{PYTHONPATH}" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/validate_automatus_metadata.py" "--root" "${CMAKE_SOURCE_DIR}"
Expand Down

0 comments on commit c568529

Please sign in to comment.