infra/tests/support/puppeteer-socket/puppeteer-run.nix
b12f d3f5308eaf
Some checks failed
Flake checks / Check (pull_request) Failing after 23s
tests: add better keycloak and puppeteer support
2024-08-26 22:49:46 +02:00

9 lines
200 B
Nix

{
writeShellScriptBin,
curl
}: writeShellScriptBin "puppeteer-run" ''
set -e
exec ${curl}/bin/curl --fail-with-body -X POST -d "$@" --unix-socket "/tmp/puppeteer.sock" http://puppeteer-socket
''