summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/closure2.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-04 17:46:02 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-04 17:46:02 +0300
commit647e72ca63a345a5d6de16fe359bbc3b7c6615ec (patch)
tree385288a083a2deda810447e7e7a6c6177381b412 /tests/basics/closure2.py
parent58168c8e6bcf3619d281a8c877ef20e5efe049d2 (diff)
downloadmicropython-647e72ca63a345a5d6de16fe359bbc3b7c6615ec.tar.gz
micropython-647e72ca63a345a5d6de16fe359bbc3b7c6615ec.zip
tools/pyboard: Add "exec" and "execpty" pseudo-devices support.
This allows to execute a command and communicate with its stdin/stdout via pipes ("exec") or with command-created pseudo-terminal ("execpty"), to emulate serial access. Immediate usecase is controlling a QEMU process which emulates board's serial via normal console, but it could be used e.g. with helper binaries to access real board over other hadware protocols, etc. An example of device specification for these cases is: --device exec:../zephyr/qemu.sh --device execpty:../zephyr/qemu2.sh Where qemu.sh contains long-long qemu startup line, or calls another command. There's a special support in this patch for running the command in a new terminal session, to support shell wrappers like that (without new terminal session, only wrapper script would be terminated, but its child processes would continue to run).
Diffstat (limited to 'tests/basics/closure2.py')
0 files changed, 0 insertions, 0 deletions