Claudius Heine
2017-03-13 14:24:29 UTC
Hi everyone,
I am currently looking for something that automates some embedded Linux
development steps on a remote build server and fabric might just be the
right tool for this.
But there is one issue where I would like your thoughts on. One part of
developing embedded Linux systems is connecting to the system via a
serial terminal in order to input some commands and read their output.
AFAIK their is currently no real solution to automate interactive
programs in fabric. There is the 'open_shell' command, but that just
gives the control to the user.
I could imagine that this functionality could be implemented in fabric
using a context manager. This implementation should then wrap around
_run_command and _execute in order to provide a compatible experience.
And the context manager provides the necessary settings (shell command,
shell prompt, shell exit sequence, ... and how the exit codes of the
programs can queried, etc.). There should also be a much simpler API
similar to pexpect that is used by the _run_command and _execute wrapper
for these higher functionality.
Is such functionality on the roadmap or do you know about something that
already exists outside of fabric that solves these issues?
Thanks and have a nice day,
Claudius
I am currently looking for something that automates some embedded Linux
development steps on a remote build server and fabric might just be the
right tool for this.
But there is one issue where I would like your thoughts on. One part of
developing embedded Linux systems is connecting to the system via a
serial terminal in order to input some commands and read their output.
AFAIK their is currently no real solution to automate interactive
programs in fabric. There is the 'open_shell' command, but that just
gives the control to the user.
I could imagine that this functionality could be implemented in fabric
using a context manager. This implementation should then wrap around
_run_command and _execute in order to provide a compatible experience.
And the context manager provides the necessary settings (shell command,
shell prompt, shell exit sequence, ... and how the exit codes of the
programs can queried, etc.). There should also be a much simpler API
similar to pexpect that is used by the _run_command and _execute wrapper
for these higher functionality.
Is such functionality on the roadmap or do you know about something that
already exists outside of fabric that solves these issues?
Thanks and have a nice day,
Claudius
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ***@denx.de
PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
Keyserver: hkp://pool.sks-keyservers.net
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ***@denx.de
PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
Keyserver: hkp://pool.sks-keyservers.net