From 329af2fdc07a153d1335e08f748b1560ce25dc19 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 9 Apr 2024 17:08:06 +0300 Subject: [PATCH] test: Clean up tmp directory on script exit (#1810) --- test/test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test.sh b/test/test.sh index 8d4cccd3d8..dc02b2161c 100755 --- a/test/test.sh +++ b/test/test.sh @@ -9,10 +9,11 @@ # the qlog output and the packet capture. set -e +tmp=$(mktemp -d) +trap 'rm -rf "$tmp"' EXIT cargo build --bin neqo-client --bin neqo-server -tmp=$(mktemp -d) addr=127.0.0.1 port=4433 path=/20000 @@ -37,5 +38,3 @@ tmux -CC \ until [ -e $tmp/done ]; do sleep 1; done && \ tshark -r $tmp/test.pcap -o tls.keylog_file:$tmp/test.tlskey" \; \ set remain-on-exit on - -# rm -rf "$tmp"