Skip to content

Commit e284c48

Browse files
committed
Update
[ghstack-poisoned]
1 parent 36bbc15 commit e284c48

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.ci/scripts/test_backend_linux.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ fi
5454
PYTHON_EXECUTABLE=python CMAKE_ARGS="$EXTRA_BUILD_ARGS" .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release --editable true
5555

5656
EXIT_CODE=0
57-
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$REPORT_FILE" || EXIT_CODE=$?
58-
57+
pytest -c /dev/nul -n auto backends/test/suite/$SUITE/ -m flow_$FLOW --json-report --json-report-file="$REPORT_FILE" || EXIT_CODE=$?
5958
# Generate markdown summary.
60-
python -m executorch.backends.test.suite.generate_markdown_summary "$REPORT_FILE" > ${GITHUB_STEP_SUMMARY:-"step_summary.md"} --exit-code $EXIT_CODE
59+
python -m executorch.backends.test.suite.generate_markdown_summary_json "$REPORT_FILE" > ${GITHUB_STEP_SUMMARY:-"step_summary.md"} --exit-code $EXIT_CODE

backends/test/suite/generate_markdown_summary_json.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ def generate_markdown(json_path: str, exit_code: int = 0): # noqa (C901)
168168

169169
# Generate Failed Tests section
170170
print("# Failed Tests\n")
171+
print("To reproduce, run the following command from the root of the ExecuTorch repository:")
172+
print("```")
173+
print("pytest -c /dev/nul backends/test/suite/ -k \"<test_id>\"")
174+
print("```")
171175
if results.failed_tests:
172176
header = build_header(results.failed_tests)
173177

backends/test/suite/operators/test_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def forward(self, x, y):
2626

2727

2828
@pytest.mark.parametrize(
29-
"dtype", [torch.float16, torch.float32], ids=lambda s: str(s)[6:]
29+
"dtype", [torch.float32], ids=lambda s: str(s)[6:]
3030
)
3131
def test_add_dtype(test_runner, dtype) -> None:
3232
test_runner.lower_and_run_model(

0 commit comments

Comments
 (0)