Skip to content

Commit c7e8628

Browse files
Fix retry variable on mac (#19333)
1 parent 1debeb6 commit c7e8628

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.ci/scripts/test_backend.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ GOLDEN_DIR="${ARTIFACT_DIR}/golden-artifacts"
9797
export GOLDEN_ARTIFACTS_DIR="${GOLDEN_DIR}"
9898

9999
EXIT_CODE=0
100-
${CONDA_RUN_CMD} pytest -c /dev/null -n auto "${PYTEST_RETRY_ARGS[@]}" backends/test/suite/$SUITE/ -m flow_$FLOW --json-report --json-report-file="$REPORT_FILE" || EXIT_CODE=$?
100+
PYTEST_ARGS=(-c /dev/null -n auto)
101+
if [[ ${#PYTEST_RETRY_ARGS[@]} -gt 0 ]]; then
102+
PYTEST_ARGS+=("${PYTEST_RETRY_ARGS[@]}")
103+
fi
104+
PYTEST_ARGS+=("backends/test/suite/$SUITE/" -m "flow_$FLOW" --json-report --json-report-file="$REPORT_FILE")
105+
${CONDA_RUN_CMD} pytest "${PYTEST_ARGS[@]}" || EXIT_CODE=$?
101106
# Generate markdown summary.
102107
${CONDA_RUN_CMD} python -m executorch.backends.test.suite.generate_markdown_summary_json "$REPORT_FILE" > ${GITHUB_STEP_SUMMARY:-"step_summary.md"} --exit-code $EXIT_CODE

0 commit comments

Comments
 (0)