nmci: improve nmci.util.process_run()
-
add
nmci.util.process_run_code()
to return both the returncode and stdout. -
by default, let always return stdout as string (expecting valid UTF-8 encoding). A new parameter "as_bytes" can be used to request the raw binary stdout.
-
add some parameters like
shell
andignore_stderr
.
Edited by Thomas Haller