diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-12 20:56:21 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-13 05:32:00 +0200 |
commit | a8a437abd6c03161c0d7430f969f6a32d046dc29 (patch) | |
tree | f1f8915505a8b73de82d4b3ef69db9ea8fe20e5d /test/lib/layout | |
parent | a8c32c85d5f3847a1f9ea0030beb0c338af53cd5 (diff) | |
download | passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar.gz passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar.bz2 passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar.lz passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar.xz passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.tar.zst passt-a8a437abd6c03161c0d7430f969f6a32d046dc29.zip |
test: Extend context system to run commands in namespace for pasta tests
Extend the context system to allow commands to be run in a namespace
created with unshare, and use it for the namespace used in the pasta tests.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/layout')
-rw-r--r-- | test/lib/layout | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lib/layout b/test/lib/layout index 95bd035..1401955 100644 --- a/test/lib/layout +++ b/test/lib/layout @@ -61,15 +61,13 @@ layout_pasta() { get_info_cols - tmux pipe-pane -O -t ${PANE_NS} "cat >> ${LOGDIR}/pane_ns.log" - tmux select-pane -t ${PANE_NS} -T "namespace" - tmux send-keys -l -t ${PANE_INFO} 'while cat /tmp/.passt_test_log_pipe; do :; done' tmux send-keys -t ${PANE_INFO} -N 100 C-m tmux select-pane -t ${PANE_INFO} -T "test log" pane_watch_contexts ${PANE_HOST} host host pane_watch_contexts ${PANE_PASST} pasta passt + pane_watch_contexts ${PANE_NS} "namespace" unshare ns info_layout "single pasta instance with namespace" |