Open shunghsiyu opened 4 years ago
A possible workaround is to have the console set to automatic login
Yes and also, in the future we can start the test executor in .profile
(similar to https://gitlab.com/Palethorpe/ltp-executor/-/blob/master/test/qemu-dracut.sh#L19, https://gitlab.com/Palethorpe/ltp-executor/-/blob/master/test/run-executor-on-vsport.sh).
When there is a newline before the login prompt (i.e. "\nlocalhost login: "), runltp-ng will fail to recognize the prompt, thus not proceed with entering the username; this is because it get stucked polling forever at
$poll->poll($timeout)
(since timeout is not passed tobackend::start
).Below is a script that mimics this issue.
wait_regexp
andtry_readline
is copied directly from the backend module, with minor modification to avoid actually reading file descriptor (by mockingsysread
).