Skip to content

Commit cb2295c

Browse files
committed
chore(ci): update fill prepatched script.
1 parent f1d66ac commit cb2295c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/scripts/fill_prepatched_tests.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +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 "FAILURES" filloutput.log; then
33-
echo "Error: failed to generate .py tests from before the PR."
34-
exit 1
35-
fi
36-
37-
if grep -q "ERROR collecting test session" 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
34+
echo "any_modified_fixtures=false" >> "$GITHUB_OUTPUT"
35+
exit 0
36+
elif [ $FILL_RETURN_CODE -ne 0 ]; then
3837
echo "Error: failed to generate .py tests from before the PR."
3938
exit 1
4039
fi

0 commit comments

Comments
 (0)