Commit 612bdee 1 parent 28cf1cf commit 612bdee Copy full SHA for 612bdee
File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/lakefile.lean
2
+ /serve.log
Original file line number Diff line number Diff line change 1
- rm -rf .lake lakefile.lean
1
+ rm -rf .lake lakefile.lean serve.log
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ echo "does not compile" > lakefile.lean
25
25
# ---
26
26
27
27
MSGS=" $INIT_REQ$INITD_NOT$SD_REQ$EXIT_NOT "
28
- echo -n " $MSGS " | ${LAKE:- ../ ../ .lake/ build/ bin/ lake} serve > /dev/null
28
+ echo -n " $MSGS " | ${LAKE:- ../ ../ .lake/ build/ bin/ lake} serve > serve.log
29
29
echo " tested 49"
30
30
31
31
# ---
@@ -34,12 +34,9 @@ echo "tested 49"
34
34
# ---
35
35
36
36
# Test that `lake setup-file` produces the error from `LAKE_INVALID_CONFIG`
37
- set -x
38
- # NOTE: For some reason, using `!` here does not work on macOS
39
37
(LAKE_INVALID_CONFIG=$' foo\n ' $LAKE setup-file ./Irrelevant.lean 2>&1 && exit 1 || true) | grep --color foo
40
- set +x
41
38
42
39
# Test that `lake serve` produces the `Invalid Lake configuration message`.
43
40
MSGS=" $INIT_REQ$INITD_NOT$OPEN_REQ "
44
- grep -q " Invalid Lake configuration" < < ( set +e; (echo -n " $MSGS " && $TAIL --pid=$$ -f /dev/null) | $LAKE serve)
41
+ grep -q " Invalid Lake configuration" <( set +e; (echo -n " $MSGS " && $TAIL --pid=$$ -f /dev/null) | timeout 30s $LAKE serve | tee serve.log )
45
42
echo " tested 116"
You can’t perform that action at this time.
0 commit comments