test: Fix openssl exec path
Some checks failed
CI / Test (OTP 28.4 / Elixir 1.19.4 + E2E) (push) Failing after 0s
CI / Test (OTP 27.2 / Elixir 1.18.2) (push) Failing after 0s

This commit is contained in:
2026-03-19 13:52:17 +01:00
parent e7a7460191
commit 07953a7608

View File

@@ -137,9 +137,16 @@ defmodule Parrhesia.TestSupport.TLSCerts do
end
defp openssl!(args) do
case System.cmd("/usr/bin/openssl", args, stderr_to_stdout: true) do
case System.cmd(openssl_executable!(), args, stderr_to_stdout: true) do
{output, 0} -> output
{output, status} -> raise "openssl failed with status #{status}: #{output}"
end
end
defp openssl_executable! do
case System.find_executable("openssl") do
nil -> raise "openssl executable not found in PATH"
path -> path
end
end
end