Rework (no) embeds
With nmci.embed.NO_EMBED
we have no info about executed process. Let's introduce embed_stdout
and embed_stderr
bool args to nmci.process.run()
and use it instead. This is ideal in the following use_case:
nmci.embed.embed_data("Packages", nmci.process.run_stdout("rpm -qa", embed_stdout=False))
This way, the returncode and duration of rpm -qa
will be embedded with possible STDERR, but STDOUT will be [NO_EMBED]
because STDOUT will be embedded in Packages
.