test: make test 44 more consistent

This commit is contained in:
tydeu 2022-08-04 22:23:46 -04:00
parent 350e1b810a
commit a889a7387c
2 changed files with 4 additions and 1 deletions

View file

@ -3,5 +3,4 @@ Compiling Hello
Linking hello
Building Hello
Compiling Hello
Building Main
Linking hello

View file

@ -12,6 +12,10 @@ echo 'def hello := "old"' > hello/Hello.lean
$LAKE -d hello build --old | tee produced.out
echo 'def hello := "normal"' > hello/Hello.lean
$LAKE -d hello build | tee -a produced.out
grep -i main produced.out
grep -i hello produced.out > produced.out.tmp
mv produced.out.tmp produced.out
if [ "$OS" = Windows_NT ]; then
sed -i 's/.exe//g' produced.out
diff --strip-trailing-cr expected.out produced.out