aboutgitcodebugslistschat
path: root/test/lib/setup
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-08-18 16:13:56 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-08-20 19:07:12 +0200
commit69126d4d48002784562ba44a77df37387968061d (patch)
tree99ec16b7f630b4fcda8c446d33a46cc7c3ff52ef /test/lib/setup
parent9224af149483e448546db7a63b66992c6003ab3e (diff)
downloadpasst-69126d4d48002784562ba44a77df37387968061d.tar
passt-69126d4d48002784562ba44a77df37387968061d.tar.gz
passt-69126d4d48002784562ba44a77df37387968061d.tar.bz2
passt-69126d4d48002784562ba44a77df37387968061d.tar.lz
passt-69126d4d48002784562ba44a77df37387968061d.tar.xz
passt-69126d4d48002784562ba44a77df37387968061d.tar.zst
passt-69126d4d48002784562ba44a77df37387968061d.zip
test: Use shutdown test for pasta
For the passt and passt_in_ns tests we have a "shutdown" testcase that checks for any errors from the passt process we were using (including valgrind warnings). Do the same for pasta tests, so that we catch any error codes from the pasta process. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/setup')
-rwxr-xr-xtest/lib/setup4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lib/setup b/test/lib/setup
index 19ddd37..450b68a 100755
--- a/test/lib/setup
+++ b/test/lib/setup
@@ -98,7 +98,7 @@ setup_pasta() {
[ ${DEBUG} -eq 1 ] && __opts="${__opts} -d"
[ ${TRACE} -eq 1 ] && __opts="${__opts} --trace"
- pane_run PASST "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 ${__target_pid}"
+ pane_run PASST "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 -P passt.pid ${__target_pid}"
sleep 1
}
@@ -305,8 +305,6 @@ teardown_passt() {
# teardown_passt() - Exit namespace, kill pasta process
teardown_pasta() {
- tmux send-keys -t ${PANE_PASST} "C-c"
- pane_wait PASST
tmux send-keys -t ${PANE_NS} "C-d"
pane_wait NS
}