Yup, `stdout` could include an incomplete line. Unfortunately there's no mocking for `stdline` (https://github.com/Microsoft/vsts-task-lib/issues/227). I'm switching back to `stdout` to get the tests passing. I hope to find time to fix the mocking and then return to iOS signing and switch over to `stdline` everywhere.