test: Read bytewise to catch prompts

Propmts are not ended with a \n, so stdout.readline(9 does not catch it.
Now we read bytewise to also read unfinished lines.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>