Skip to content

Commit

Permalink
test: Clean up tmp directory on script exit (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Apr 9, 2024
1 parent 1cc44f0 commit 329af2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

0 comments on commit 329af2f

Please sign in to comment.