diff --git a/examples/run_all.sh b/examples/run_all.sh index 39894cdd0..391c96088 100644 --- a/examples/run_all.sh +++ b/examples/run_all.sh @@ -14,6 +14,7 @@ for file in ./*.py; do python "$file" if [ $? -ne 0 ]; then echo "run $file failed" + echo "::error file=examples/$file,line=9,col=5,endColumn=7::Missing semicolon" exit 1 fi if [[ -n "$GITHUB_ACTIONS" ]]; then diff --git a/tests/run_all.sh b/tests/run_all.sh index 20b33de29..faca403e8 100644 --- a/tests/run_all.sh +++ b/tests/run_all.sh @@ -28,6 +28,7 @@ if [ ${#failed_tests[@]} -ne 0 ]; then echo "failed tests file:" for failed_test in "${failed_tests[@]}"; do echo "$failed_test" - echo "::error file=$failed_test,line=1,col=5,endColumn=7::Missing semicolon" + echo "::error file=tests/$failed_test,line=9,col=5,endColumn=7::Missing semicolon" done + exit 1 fi