git p4 test: use client_view to build the initial client

Simplify the code a bit by using an existing function. 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 daa38f4ae0afdc6357c547d2f6bd5270e1e4151a
1 file changed +2 -9
t/lib-git-p4.sh
+2 -9
@@ -74,15 +74,8 @@ start_p4d() {
74 fi
75
76 # build a client
77 - (
78 - cd "$cli" &&
79 - p4 client -i <<-EOF
80 - Client: client
81 - Description: client
82 - Root: $cli
83 - View: //depot/... //client/...
84 - EOF
85 - )
77 + client_view "//depot/... //client/..." &&
78 +
79 return 0
80 }
81