chore: fix test on macOS (#9483)

This commit is contained in:
Sebastian Ullrich 2025-07-23 14:10:13 +02:00 committed by GitHub
parent 9328271dd0
commit 4cbfa485fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euxo pipefail
source ../../../src/lake/tests/common.sh
rm -rf .lake/build
mkdir -p Rebuild
@ -24,7 +26,7 @@ echo "-- test" >> Rebuild/Basic.lean
test_unchanged
# Closed terms do not matter.
sed -i 's/"world"/"wodd"/' Rebuild/Basic.lean
sed_i 's/"world"/"wodd"/' Rebuild/Basic.lean
test_unchanged
# Private declarations do not matter.
@ -32,7 +34,7 @@ echo 'theorem priv : True := .intro' >> Rebuild/Basic.lean
test_unchanged
# Lambdas do not matter.
sed -i 's/"wodd"/dbg_trace "typo"; \0/' Rebuild/Basic.lean
sed_i 's/"wodd"/dbg_trace "typo"; "wodd"/' Rebuild/Basic.lean
test_unchanged
# Private definitions do not matter.