Skip to content

Commit 8a9ed05

Browse files
committed
chore(ci): update script.
1 parent 8298b3d commit 8a9ed05

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/scripts/fill_prepatched_tests.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@ echo "Select files that were changed and exist on the main branch:"
2525
echo "$MODIFIED_DELETED_FILES"
2626

2727
rm -rf fixtures
28-
rm -f filloutput.log
2928

30-
uv run fill $MODIFIED_DELETED_FILES --clean --until=$FILL_UNTIL --evm-bin evmone-t8n --block-gas-limit $BLOCK_GAS_LIMIT -m "state_test or blockchain_test" --output $BASE_TEST_PATH > >(tee -a filloutput.log) 2> >(tee -a filloutput.log >&2)
31-
32-
if grep -q "no tests ran" filloutput.log; then
29+
set +e
30+
uv run fill $MODIFIED_DELETED_FILES --clean --until=$FILL_UNTIL --evm-bin evmone-t8n --block-gas-limit $BLOCK_GAS_LIMIT -m "state_test or blockchain_test" --output $BASE_TEST_PATH
31+
FILL_RETURN_CODE=$?
32+
set -e
33+
if [ $FILL_RETURN_CODE -eq 5 ]; then
3334
echo "any_modified_fixtures=false" >> "$GITHUB_OUTPUT"
3435
exit 0
35-
fi
36-
37-
if grep -q "FAILURES" filloutput.log; then
38-
echo "Error: failed to generate .py tests from before the PR."
39-
exit 1
40-
fi
41-
42-
if grep -q "ERROR collecting test session" filloutput.log; then
36+
elif [ $FILL_RETURN_CODE -ne 0 ]; then
4337
echo "Error: failed to generate .py tests from before the PR."
4438
exit 1
4539
fi
@@ -59,4 +53,4 @@ else
5953
echo "Base folder is empty after fixture comparison, skipping coverage check."
6054
echo "any_modified_fixtures=false" >> "$GITHUB_OUTPUT"
6155
fi
62-
exit 0
56+
exit 0$FILL_RETURN_CODE

0 commit comments

Comments
 (0)