mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
chore: fix ci after new linter was added (#12733)
The linter was running in parallel with other tests, which were creating and deleting files. Since the linter was iterating over some files and directories at the time, it crashed.
This commit is contained in:
@@ -405,6 +405,11 @@ foreach(T ${LEANLAKETESTS})
|
||||
endif()
|
||||
endforeach(T)
|
||||
|
||||
# Lint test suite and parts of the repository.
|
||||
# Must not run in parallel with any other tests that may create or delete files.
|
||||
add_test(NAME lint.py COMMAND python lint.py WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
set_tests_properties(lint.py PROPERTIES RUN_SERIAL TRUE)
|
||||
|
||||
add_test_pile(compile *.lean BENCH PART2)
|
||||
add_test_pile(compile_bench *.lean BENCH PART2)
|
||||
add_test_pile(elab *.lean)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
python "$TEST_DIR/lint.py"
|
||||
Reference in New Issue
Block a user