chore: lake: fail if no error in tests/serve

This commit is contained in:
tydeu 2023-10-12 16:44:02 -04:00 committed by Mac Malone
parent 894c3abb37
commit 8db978bb10

View file

@ -35,7 +35,7 @@ echo "tested 49"
# Test that `lake print-paths` produces the error from `LAKE_INVALID_CONFIG`
set -x
# NOTE: For some reason, using `!` here does not work on macOS
(LAKE_INVALID_CONFIG=$'foo\n' $LAKE print-paths 2>&1 || true) | grep foo
(LAKE_INVALID_CONFIG=$'foo\n' $LAKE print-paths 2>&1 && exit 1 || true) | grep foo
set +x
# Test that `lake serve` produces the `Invalid Lake configuration message`.