From: Pete Wyckoff Date: Sun, 27 Jan 2013 03:11:07 +0000 (-0500) Subject: git p4 test: use client_view to build the initial client X-Git-Tag: v1.8.2-rc0~57^2~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/daa38f4ae0afdc6357c547d2f6bd5270e1e4151a?hp=--cc 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 Signed-off-by: Junio C Hamano --- daa38f4ae0afdc6357c547d2f6bd5270e1e4151a diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh index 7061dce7e5..890ee60708 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 }