File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -278,11 +278,12 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
278
278
else
279
279
ASYNC_PYTEST_ARGS=(" -m asyncio" " --junitxml=xunit-results/TEST-asyncresults.xml" " ${PYTEST_ARGS[@]} " )
280
280
fi
281
+ # Workaround until unittest -> pytest conversion is complete
282
+ set +o errexit
281
283
# shellcheck disable=SC2048
282
284
uv run ${UV_ARGS[*]} pytest " ${PYTEST_ARGS[@]} "
285
+ exit_code=$?
283
286
284
- # Workaround until unittest -> pytest conversion is complete
285
- set +o errexit
286
287
# shellcheck disable=SC2048
287
288
uv run ${UV_ARGS[*]} pytest " ${ASYNC_PYTEST_ARGS[@]} " " --collect-only"
288
289
collected=$?
@@ -292,6 +293,9 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
292
293
# shellcheck disable=SC2048
293
294
uv run ${UV_ARGS[*]} pytest " ${ASYNC_PYTEST_ARGS[@]} "
294
295
fi
296
+ if [ $exit_code -ne 0 ]; then
297
+ exit $exit_code
298
+ fi
295
299
else
296
300
# shellcheck disable=SC2048
297
301
uv run ${UV_ARGS[*]} green_framework_test.py $GREEN_FRAMEWORK -v " ${TEST_ARGS[@]} "
You can’t perform that action at this time.
0 commit comments