aboutgitcodebugslistschat
path: root/test/nsholder.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-12 20:56:15 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-13 05:32:00 +0200
commit3c47b65a64bc57de335cb0723075ae9de7b29501 (patch)
tree9e37c1c515f0bf491ea74c2d28a11e8f02700591 /test/nsholder.c
parent4fbd0a8ff95afcff6f8941035d2498c5457ab08d (diff)
downloadpasst-3c47b65a64bc57de335cb0723075ae9de7b29501.tar
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.tar.gz
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.tar.bz2
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.tar.lz
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.tar.xz
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.tar.zst
passt-3c47b65a64bc57de335cb0723075ae9de7b29501.zip
test: Context execution helpers
For the tests, we need to run commands in various contexts: in the host, in a guest or in a namespace. Currently we do this by running each context in a tmux pane, and using tmux commands to type the commands into the relevant pane, then screen-scrape the output for the results if we need them. This is very fragile, because we have to make various assumptions to parse the output. Those can break if a shell doesn't have the prompt we expect, if the tmux pane is too small or in various other conditions. This starts some library functions for a new "context" system, that provides a common way to invoke commands in a given context, in a way that properly preserves stdout, stderr and the process return code. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/nsholder.c')
0 files changed, 0 insertions, 0 deletions