[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54621] kbhit does not return on non-interacti
[Octave-bug-tracker] [bug #54621] kbhit does not return on non-interactive shell
Fri, 12 Oct 2018 12:41:03 -0400 (EDT)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Follow-up Comment #8, bug #54621 (project octave):
I haven't used Robot Framework before, but I just read up a bit, and it seems
that it is simply not designed for testing CLI applications thoroughly.
The same will be true of any testing framework that doesn't take care of what
the program stdin is attached to. If stdin is a terminal or a pipe, then
Octave will run as if it's waiting for input from the other end of that
terminal or pipe.
A non-portable solution would be to use it like this
Run Process octave-cli script.m < /dev/null shell=True …
The discussion on this bug report
<https://github.com/robotframework/robotframework/issues/2166> shows that the
Robot Framework Process library is not suited or prepared to work with CLI
programs that interact with stdin at all.
Reply to this item at:
Message sent via Savannah