From a8a437abd6c03161c0d7430f969f6a32d046dc29 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 12 Sep 2022 20:56:21 +1000 Subject: 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 --- test/lib/layout | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/lib/layout') 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" -- cgit v1.2.3