Skip to content

Commit

Permalink
git p4 test: start p4d inside its db dir
Browse files Browse the repository at this point in the history
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 <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pete Wyckoff authored and Junio C Hamano committed Jan 27, 2013
1 parent 50038ba commit 6492a10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/lib-git-p4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6492a10

Please sign in to comment.