File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
33# # Run tests against a local browser on OSX.
44
5+ set -euo pipefail
6+
57PORT=8000
68DOWNLOADS=~ /Downloads
79PIDFILE=/tmp/http-cache-test-server.pid
Original file line number Diff line number Diff line change 22
33# # Run tests against a local docker image with common proxy/caches.
44
5+ set -euo pipefail
6+
57PIDFILE=/tmp/http-cache-test-server.pid
68
79ALL_PROXIES=(squid nginx apache trafficserver varnish caddy nuster)
@@ -18,13 +20,11 @@ function usage {
1820}
1921
2022function run {
21- TEST_ID=" $1 "
23+ TEST_ID=" ${1} "
2224 shift
2325 PROXIES=( " $@ " )
2426 # start test server
25- npm run --silent server --port=8000 --pidfile=$PIDFILE &
26-
27- echo $DOCKER_PORTS
27+ npm run --silent server --port=8000 --pidfile=${PIDFILE} &
2828
2929 # run proxies container
3030 docker run --platform linux/amd64 --name=tmp_proxies ${DOCKER_PORTS} -dt mnot/proxy-cache-tests host.docker.internal \
@@ -54,8 +54,8 @@ function cleanup {
5454 docker rm tmp_nuster > /dev/null
5555
5656 # stop test server
57- kill " $( cat $PIDFILE ) " > /dev/null 2>&1
58- rm $PIDFILE
57+ kill " $( cat ${ PIDFILE} ) " > /dev/null 2>&1
58+ rm ${ PIDFILE}
5959}
6060
6161function test_proxy {
Original file line number Diff line number Diff line change 22
33# # Run tests against a host/port combination.
44
5+ set -euo pipefail
6+
57function usage {
68 if [[ -n " ${1} " ]]; then
79 echo " ${1} "
You can’t perform that action at this time.
0 commit comments