test 228 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #!/usr/bin/env bash set -e port=3999 script/server -p "$port" &>/dev/null & pid=$! trap "kill $pid" EXIT INT while ! lsof -i :$port >/dev/null; do sleep .05 done phantomjs ./test/run-qunit.coffee "http://localhost:$port/"