diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-10-06 17:19:12 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-10-14 17:38:24 +0200 |
commit | c4101334e1a88e1f63c38982b49fba221ff4ab31 (patch) | |
tree | f3df949f943a61fe776271fbcac045767dc38060 /test/lib/term | |
parent | 06aa26fcf398f5d19ab46e42996190d7f95e837a (diff) | |
download | passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar.gz passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar.bz2 passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar.lz passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar.xz passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.tar.zst passt-c4101334e1a88e1f63c38982b49fba221ff4ab31.zip |
test: Add rudimentary support to run selected tests only
To keep this simple, only support tests that have corresponding setup
and teardown functions implied by their path. For example:
./run passt/ndp
will trigger the 'passt' setup and teardown functions.
This is not really elegant, but it looks robust, and while David is
considering proper alternatives, it should be quite useful.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/term')
-rwxr-xr-x | test/lib/term | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/term b/test/lib/term index eade2cd..1b42df8 100755 --- a/test/lib/term +++ b/test/lib/term @@ -650,7 +650,7 @@ run_term() { asciinema rec --overwrite "${STATEBASE}/demo.uncut" -c "$TMUX /bin/sh -c './run_demo from_term'" video_postprocess "${STATEBASE}/demo.uncut" else - $TMUX /bin/sh -c './run from_term' + $TMUX /bin/sh -c "./run from_term ${*}" fi } |