|
71 | 71 | printf "::group::%s\n" "Copy Reference Implementation" ; |
72 | 72 | for reference_file in ${INPUT_FILES}; do |
73 | 73 | [[ -d $(dirname ${{ inputs.into-path }}/"${reference_file}" ) ]] || mkdir $MKDIR_ARGS $(dirname ${{ inputs.into-path }}/"${reference_file}" ) ; |
74 | | - cp -vf ${{ inputs.from-path }}/"${reference_file}" ${{ inputs.into-path }}/"${reference_file}" || printf "::warning file='%s',title='integration failure':: Could not integrate file for Cpython %s on %s.\n" "${reference_file}" '${PYTHON_VERSION}' '${{ runner.os }}' ; |
| 74 | + if [[ "$reference_file" == Lib/test/* ]] ; then |
| 75 | + # update patches with lib_updater tool from #6089 |
| 76 | + ${{ inputs.into-path }}/scripts/lib_updater.py --from ${{ inputs.into-path }}/"${reference_file}" --to ${{ inputs.from-path }}/"${reference_file}" -o ${{ inputs.into-path }}/"${reference_file}" || \ |
| 77 | + printf "::warning file='%s',title='integration failure':: Could not integrate file for Cpython %s on %s.\n" "${reference_file}" '${PYTHON_VERSION}' '${{ runner.os }}' ; |
| 78 | + else |
| 79 | + cp -vf ${{ inputs.from-path }}/"${reference_file}" ${{ inputs.into-path }}/"${reference_file}" || printf "::warning file='%s',title='integration failure':: Could not integrate file for Cpython %s on %s.\n" "${reference_file}" '${PYTHON_VERSION}' '${{ runner.os }}' ; |
| 80 | + fi |
75 | 81 | done ; |
76 | 82 | printf "\n::endgroup::\n\n" ; |