aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-15 15:21:38 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-22 19:42:18 +0200
commit4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e (patch)
tree286403868b0cd745610568007054c21e069290b5 /test
parent2d289ec7112afadb703eca90760463c3818ed4b5 (diff)
downloadpasst-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar.gz
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar.bz2
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar.lz
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar.xz
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.tar.zst
passt-4094cec7f7bdf068c04c6d33e87a1174e8fdbf4e.zip
tests: Clean up better after iperf tests
The iperf based test commands create a bunch of .bw and .pid files for each iperf client and server. The server side .bw files are cleaned up afterwards, but the pid files are not, and none of the client side files are cleaned up. The latter doesn't really matter when the client is run on ephemeral guests, but sometimes we run it in a namespace that shares the filesystem with the host. Clean up all of these files after the tests. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test')
-rwxr-xr-xtest/lib/test2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test b/test/lib/test
index cb89e0b..e5a8632 100755
--- a/test/lib/test
+++ b/test/lib/test
@@ -79,7 +79,7 @@ test_iperf3() {
pane_wait "${__pane}"
pane_parse "${__pane}"
pane_run "${__pane}" 'for i in $(seq 0 '${__procs}'); do' \
- 'rm -f s${i}.bw; done'
+ 'rm -f [cs]${i}.bw [cs]${i}.pid; done'
pane_status "${__pane}"
}