From: Pete Wyckoff Date: Sun, 27 Jan 2013 03:11:07 GMT Subject: [PATCHv2 04/21] git p4 test: use client_view to build the initial client Message-ID: <1359256284-5660-5-git-send-email-pw@padd.com> In-Reply-To: <1359256284-5660-1-git-send-email-pw@padd.com> Simplify the code a bit by using an existing function. Signed-off-by: Pete Wyckoff --- t/lib-git-p4.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh index 7061dce..890ee60 100644 --- a/t/lib-git-p4.sh +++ b/t/lib-git-p4.sh @@ -74,15 +74,8 @@ start_p4d() { fi # build a client - ( - cd "$cli" && - p4 client -i <<-EOF - Client: client - Description: client - Root: $cli - View: //depot/... //client/... - EOF - ) + client_view "//depot/... //client/..." && + return 0 } -- 1.8.1.1.460.g6fa8886