Sha256: 8c1db451d33dbfc024bfbd7bf392d40c3b948bb3c0b8edfe1de2982d17f9b85b
Contents?: true
Size: 699 Bytes
Versions: 21
Compression:
Stored size: 699 Bytes
Contents
#!/bin/bash set -e set -x shopt -s expand_aliases alias zold="$1 --ignore-this-stupid-option --ignore-global-config --trace --network=test --no-colors" function reserve_port { python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()' } function wait_for_port { while ! nc -z localhost $1; do ((p++)) || sleep 1 if ((p==30)); then echo Port $1 is not available after $p seconds of waiting exit -1 fi sleep 1 done } function wait_for_file { while [ ! -f $1 ]; do ((c++)) || sleep 1 if ((c==30)); then echo File $1 not found, giving up after $c seconds of waiting exit -1 fi sleep 1 done }
Version data entries
21 entries across 21 versions & 1 rubygems