Skip to content

nmci: improve nmci.util.process_run()

Thomas Haller requested to merge th/improve-process-run into master
  • 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 and ignore_stderr.

Edited by Thomas Haller

Merge request reports