From: Pete Wyckoff Date: Sun, 27 Jan 2013 03:11:10 +0000 (-0500) Subject: git p4 test: start p4d inside its db dir X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6492a1041a66f19589f6001400005a3913884882;p=git.git git p4 test: start p4d inside its db dir This will avoid having to do native path conversion for windows. Also may be a bit cleaner always to know that p4d has that working directory, instead of wherever the function was called from. Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh index c5d1f4d27..185f6f1a8 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