If emergency and shutdown-emergency hooks are called, the systemd should poweroff the testsuite, therefore "rd.shell=0" is given on the test suite kernel command lines. "rd.shell=0" has to be parsed correctly by the test suite real root init also.
while read x || [ -n "$x" ] should do the trick