diff options
-rw-r--r-- | t/lib-git-p4.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh index c5d1f4d27a..185f6f1a8d 100644 --- a/t/lib-git-p4.sh +++ b/t/lib-git-p4.sh @@ -40,8 +40,11 @@ start_p4d() { mkdir -p "$db" "$cli" "$git" && rm -f "$pidfile" && ( - p4d -q -r "$db" -p $P4DPORT & - echo $! >"$pidfile" + cd "$db" && + { + p4d -q -p $P4DPORT & + echo $! >"$pidfile" + } ) && # This gives p4d a long time to start up, as it can be |