Skip to content

Commit

Permalink
wait for mitmproxy to set up certs
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Feb 10, 2025
1 parent 5407c74 commit 024d674
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/run_cached_tests
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ if [[ -f keyfile.toml ]]; then
export KEYFILE=keyfile.toml
fi

for _ in {1..10}; do
if [[ -s ~/.mitmproxy/mitmproxy-ca-cert.pem ]]; then
break
fi
sleep 1
done

http_proxy=http://localhost:7890 https_proxy=http://localhost:7890 FAKEROOTDONTTRYCHOWN=1 bwrap --dev-bind / / --bind ~/.mitmproxy/mitmproxy-ca-cert.pem /etc/ssl/cert.pem pytest

kill -INT $mitm_pid
Expand Down

0 comments on commit 024d674

Please sign in to comment.