comparison tests/test-git-import.t @ 12365:22f3353bcc36

tests: cleanup exit code handling in unified tests
author Matt Mackall <mpm@selenic.com>
date Tue, 21 Sep 2010 16:00:02 -0500
parents 4134686b83e1
children 05210e955bef
comparison
equal deleted inserted replaced
12364:e128fa4615f2 12365:22f3353bcc36
41 applying patch from stdin 41 applying patch from stdin
42 42
43 $ hg tip -q 43 $ hg tip -q
44 2:3a34410f282e 44 2:3a34410f282e
45 45
46 $ test -x new || echo failed 46 $ test -x new
47 47
48 Copy: 48 Copy:
49 49
50 $ hg import -d "1000000 0" -mcopy - <<EOF 50 $ hg import -d "1000000 0" -mcopy - <<EOF
51 > diff --git a/new b/copy 51 > diff --git a/new b/copy
63 63
64 $ hg tip -q 64 $ hg tip -q
65 3:37bacb7ca14d 65 3:37bacb7ca14d
66 66
67 $ if "$TESTDIR/hghave" -q execbit; then 67 $ if "$TESTDIR/hghave" -q execbit; then
68 > test -f copy -a ! -x copy || echo failed 68 > test -f copy -a ! -x copy || echo bad
69 > test -x copyx || echo failed 69 > test -x copyx || echo bad
70 > else 70 > else
71 > test -f copy || echo failed 71 > test -f copy || echo bad
72 > fi 72 > fi
73 73
74 $ cat copy 74 $ cat copy
75 a 75 a
76 76
115 $ hg locate 115 $ hg locate
116 empty 116 empty
117 new 117 new
118 rename 118 rename
119 119
120 $ test -f copyx && echo failed || true 120 $ test -f copyx
121 [1]
121 122
122 Regular diff: 123 Regular diff:
123 124
124 $ hg import -d "1000000 0" -mregular - <<EOF 125 $ hg import -d "1000000 0" -mregular - <<EOF
125 > diff --git a/rename b/rename 126 > diff --git a/rename b/rename