Commit 033d7172 authored by Matt Stancliff's avatar Matt Stancliff Committed by antirez
Browse files

Fix test framework to detect proper server PID

Previously the PID format was:
[PID] Timestamp

But it recently changed to:
PID:X Timestamp

The tcl testing framework was grabbing the PID from \[\d+\], but
that's not valid anymore.

Now we grab the pid from "PID: <PID>" in the part of Redis startup
output to the right of the ASCII logo.
parent 186adefd
...@@ -236,7 +236,7 @@ proc start_server {options {code undefined}} { ...@@ -236,7 +236,7 @@ proc start_server {options {code undefined}} {
# find out the pid # find out the pid
while {![info exists pid]} { while {![info exists pid]} {
regexp {\[(\d+)\]} [exec cat $stdout] _ pid regexp {PID:\s(\d+)} [exec cat $stdout] _ pid
after 100 after 100
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment