about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 314e0c3..93e1b32 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -82,6 +82,9 @@ check_stderr () {
 # unicorn_setup
 unicorn_setup () {
         eval $(unused_listen)
+        port=$(expr $listen : '[^:]*:\([0-9]\+\)')
+        host=$(expr $listen : '\([^:]*\):[0-9]\+')
+
         rtmpfiles unicorn_config pid r_err r_out fifo tmp ok
         cat > $unicorn_config <<EOF
 listen "$listen"