Skip to content

Commit 83f98c7

Browse files
committed
run-vmtest: always search for json summaries
In case when TEST_RUNNERS is set, but .json summary was not produced (due to runner crashing, for example), the print_test_summary.py script would fail with "no such file" error. Always search for .json summaries with find, to avoid this unhelpful error. Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 45bfd5c commit 83f98c7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

run-vmtest/run.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,7 @@ fi
112112

113113
foldable end collect_status
114114

115-
if [ -n "${TEST_RUNNERS}" ]; then
116-
SUMMARIES=$(for runner in ${TEST_RUNNERS}; do echo "${runner}.json"; done)
117-
else
118-
SUMMARIES=$(find . -maxdepth 1 -name "test_*.json")
119-
fi
120-
115+
SUMMARIES=$(find . -maxdepth 1 -name "test_*.json")
121116
for summary in ${SUMMARIES}; do
122117
if [ -f "${summary}" ]; then
123118
"${GITHUB_ACTION_PATH}/print_test_summary.py" -s "${GITHUB_STEP_SUMMARY}" -j "${summary}"

0 commit comments

Comments
 (0)