diff --git a/Makefile b/Makefile index 5e2a8adf90..20cd90b231 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,11 @@ tests-toy: filecheck-toy pytest-toy tests-marimo: @for file in docs/marimo/*.py; do \ echo "Running $$file"; \ - python3 "$$file" || exit 1; \ + error_message=$$(python3 "$$file" 2>&1) || { \ + echo "Error running $$file"; \ + echo "$$error_message"; \ + exit 1; \ + }; \ done @echo "All marimo tests passed successfully." @@ -66,7 +70,11 @@ tests-marimo-mlir: @echo "MLIR is installed, running tests." @for file in docs/marimo/mlir/*.py; do \ echo "Running $$file"; \ - python3 "$$file" || exit 1; \ + error_message=$$(python3 "$$file" 2>&1) || { \ + echo "Error running $$file"; \ + echo "$$error_message"; \ + exit 1; \ + }; \ done @echo "All marimo mlir tests passed successfully."