summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c700b68)
raw | patch | inline | side by side (parent: c700b68)
author | Gary Gibbons <ggibbons@perforce.com> | |
Mon, 2 Jan 2012 23:05:50 +0000 (18:05 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 3 Jan 2012 22:10:02 +0000 (14:10 -0800) |
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>
(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>
contrib/fast-import/git-p4 | patch | blob | history | |
t/t9809-git-p4-client-view.sh | patch | blob | history |
index d3c3ad859c7fdf60756cba8623b6b34842bd5ca4..c144c8960c0af6719ad29f677745d60f6aa8cd12 100755 (executable)
# p4 has these %%1 to %%9 arguments in specs to
# reorder paths; which we can't handle (yet :)
- if re.match('%%\d', v) != None:
+ if re.search('%%\d', v) != None:
print "Sorry, can't handle %%n arguments in client specs"
sys.exit(1)
+ if re.search('\*', v) != None:
+ print "Sorry, can't handle * mappings in client specs"
+ sys.exit(1)
if v.startswith('"'):
start = 1
index 4259fb3e1d711ffbbf9c31458252dbb29c035083..cbf2213e96faf85eea393c48c55252099e68fdfe 100755 (executable)
'
# 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