t/t0000-basic.sh in rainbows-0.1.0 vs t/t0000-basic.sh in rainbows-0.1.1

- old
+ new

@@ -1,18 +1,11 @@ #!/bin/sh . ./test-lib.sh eval $(unused_listen) -config_ru=$(mktemp -t rainbows.$$.XXXXXXXX.config.ru) -pid=$(mktemp -t rainbows.$$.XXXXXXXX.pid) -TEST_RM_LIST="$TEST_RM_LIST $config_ru $lock_path" +pid=$(mktemp -t rainbows.$$.pid.XXXXXXXX) +TEST_RM_LIST="$TEST_RM_LIST $lock_path $pid" -cat > $config_ru <<\EOF -use Rack::ContentLength -use Rack::ContentType -run lambda { |env| [ 200, {}, [ env.inspect << "\n" ] ] } -EOF - -rainbows $config_ru -l $listen --pid $pid & +rainbows t0000.ru -l $listen --pid $pid & wait_for_pid $pid curl -sSfv http://$listen/ kill $(cat $pid)