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 <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pete Wyckoff committed
Jan 26, 2013 at 22:11 UTC
6492a1041a66f19589f6001400005a3913884882
1 file changed
+5
-2
t/lib-git-p4.sh
+5
-2
@@ -40,8 +40,11 @@ start_p4d() {
40
mkdir -p "$db" "$cli" "$git" &&
41
rm -f "$pidfile" &&
42
(
43
- p4d -q -r "$db" -p $P4DPORT &
44
- echo $! >"$pidfile"
43
+ cd "$db" &&
44
+ {
45
+ p4d -q -p $P4DPORT &
46
+ echo $! >"$pidfile"
47
+ }
48
) &&
49
50
# This gives p4d a long time to start up, as it can be