phingofficial/phing

No new line between call with RetryTask

Closed this issue · 0 comments

Describe the bug
Since v3.0, Retry task isn't working as expected, no new line is added between calls. Which result on consecutive calls on same line i.e:bin/failbin/failbin/failbin/fail.

In v2.17.4, RetryTask and ExecTask with command was working as expected.

Steps To Reproduce

<retry retryCount="3">
    <exec executable="bin/fail" passthru="true" checkreturn="true" />
</retry>

Expected behavior
Each retry should be on a new line

Screenshots / terminal output

sh: 1: bin/fail: not found
    [retry] Attempt [0]: error occurred; retrying...
sh: 1: bin/failbin/fail: not found
    [retry] Attempt [1]: error occurred; retrying...
sh: 1: bin/failbin/failbin/fail: not found
    [retry] Attempt [2]: error occurred; retrying...
sh: 1: bin/failbin/failbin/failbin/fail: not found

BUILD FAILED
/var/www/uzege-ortho/app/build.xml:71:30 Task [exec] failed after [3] attempts; giving up
Error messages:
exec returned: 127
exec returned: 127
exec returned: 127
exec returned: 127

Additional context
PHP 8.2.12
phing/phing 3.0.0