nixosTests.mitmproxy: fix certificate location passed to curl

Broken since
- https://hydra.nixos.org/build/322094860 (logs missing)
- https://hydra.nixos.org/build/323032381 (next run with logs)

https://hydra.nixos.org/job/nixos/unstable/nixos.tests.mitmproxy.x86_64-linux/all

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij 2026-03-28 20:32:51 +05:30
commit 852987500b
No known key found for this signature in database

View file

@ -86,7 +86,7 @@ in
''
def curl(command: str, proxy: bool = False):
if proxy:
command = "curl --proxy 127.0.0.1:8080 --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem " + command
command = "curl --proxy 127.0.0.1:8080 --cacert ~/.mitmproxy/mitmproxy-ca.pem " + command
else:
command = "curl " + command
return machine.succeed(command)