mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 10:24:07 +00:00
fix: avoid duplicate lake test registration when LAKE_CI is on (#12877)
This PR fixes a CMake error when the `lake-ci` label is used. The previous implementation appended the full `tests/lake/tests/` glob to a base list that already included `tests/lake/tests/shake/test.sh`, causing a duplicate `add_test` name. This uses an if/else to select the appropriate glob instead. Discovered via https://github.com/leanprover/lean4/pull/12540 which has the `lake-ci` label. 🤖 Prepared with Claude Code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in: