Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Clean up tmp directory on script exit #1810

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"