aboutsummaryrefslogtreecommitdiff
path: root/t/t9809-git-p4-client-view.sh
diff options
context:
space:
mode:
authorGary Gibbons <ggibbons@perforce.com>2012-01-02 18:05:50 -0500
committerJunio C Hamano <gitster@pobox.com>2012-01-03 14:10:02 -0800
commitb10048d0e9c4a209997c3b7f44021af15f88d768 (patch)
tree2f385d52c8bb11a90346ba96916bf88008d4dd0a /t/t9809-git-p4-client-view.sh
parentc700b684cf879f80d5e9e918210475b02339fc29 (diff)
downloadgit-b10048d0e9c4a209997c3b7f44021af15f88d768.tar.gz
git-b10048d0e9c4a209997c3b7f44021af15f88d768.tar.xz
git-p4: fix test for unsupported P4 Client Views
Change re method in test for unsupported Client View types (containing %% or *) anywhere in the string rather than at the begining. [pw: two tests now succeed] Signed-off-by: Gary Gibbons <ggibbons@perforce.com> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9809-git-p4-client-view.sh')
-rwxr-xr-xt/t9809-git-p4-client-view.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9809-git-p4-client-view.sh b/t/t9809-git-p4-client-view.sh
index 4259fb3e1..cbf2213e9 100755
--- a/t/t9809-git-p4-client-view.sh
+++ b/t/t9809-git-p4-client-view.sh
@@ -89,13 +89,13 @@ test_expect_success 'init depot' '
'
# double % for printf
-test_expect_failure 'unsupported view wildcard %%n' '
+test_expect_success 'unsupported view wildcard %%n' '
client_view "//depot/%%%%1/sub/... //client/sub/%%%%1/..." &&
test_when_finished cleanup_git &&
test_must_fail "$GITP4" clone --use-client-spec --dest="$git" //depot
'
-test_expect_failure 'unsupported view wildcard *' '
+test_expect_success 'unsupported view wildcard *' '
client_view "//depot/*/bar/... //client/*/bar/..." &&
test_when_finished cleanup_git &&
test_must_fail "$GITP4" clone --use-client-spec --dest="$git" //depot