aboutgitcodebugslistschat
path: root/test/run
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-12 20:56:17 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-13 05:32:00 +0200
commitc2f248588b271f083c81f260c0818781e74e3c2d (patch)
treeedfc25b7b5c5194878b5914e0a3101525e1a42aa /test/run
parenta32df9b6f4e997cb1565f90eaa721266790590ff (diff)
downloadpasst-c2f248588b271f083c81f260c0818781e74e3c2d.tar
passt-c2f248588b271f083c81f260c0818781e74e3c2d.tar.gz
passt-c2f248588b271f083c81f260c0818781e74e3c2d.tar.bz2
passt-c2f248588b271f083c81f260c0818781e74e3c2d.tar.lz
passt-c2f248588b271f083c81f260c0818781e74e3c2d.tar.xz
passt-c2f248588b271f083c81f260c0818781e74e3c2d.tar.zst
passt-c2f248588b271f083c81f260c0818781e74e3c2d.zip
test: Integration of old-style pane execution and new context execution
We're creating a system for tests to more reliably execute commands in various contexts (e.g. host, guest, namespace). That transition is going to happen over a number of steps though, so in the meantime we need to deal with both the old-style issuing of commands via typing into and screen scraping tmux panels, and the new-style system for executing commands in context. Introduce some transitional helpers which will issue a command via context if the requested context is initialized, but will otherwise fall back to the old style tmux panel based method. Re-implement the various test DSL commands in terms of these new helpers. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run b/test/run
index aa9a380..0ec1334 100755
--- a/test/run
+++ b/test/run
@@ -39,6 +39,7 @@ COMMIT="$(git log --oneline --no-decorate -1)"
. lib/util
. lib/setup
+. lib/context
. lib/term
. lib/perf_report
. lib/layout