aboutsummaryrefslogtreecommitdiff
path: root/test-suite/serve.sh
blob: 45efc3c76a50b918b3fcf21ba5d35116a3a8832e (plain)
1
2
3
4
5
6
#!/usr/bin/env bash
# Serve the test suite on a fixed local port so pi-chrome can drive it.
cd "$(dirname "$0")"
PORT="${PORT:-8765}"
echo "serving http://127.0.0.1:${PORT}/"
exec python3 -m http.server "${PORT}" --bind 127.0.0.1