|
99 | 99 | test_cmp "$expect" actual |
100 | 100 | ' |
101 | 101 |
|
102 | | - test "$cmd" != diff || continue |
| 102 | + case "$cmd" in diff|show) continue;; esac |
103 | 103 |
|
104 | 104 | test_expect_success "$cmd --graph $verb COLUMNS (big change)" ' |
105 | 105 | COLUMNS=200 git $cmd $args --graph >output |
|
127 | 127 | test_cmp "$expect" actual |
128 | 128 | ' |
129 | 129 |
|
130 | | - test "$cmd" != diff || continue |
| 130 | + case "$cmd" in diff|show) continue;; esac |
131 | 131 |
|
132 | 132 | test_expect_success "$cmd --graph $verb not enough COLUMNS (big change)" ' |
133 | 133 | COLUMNS=40 git $cmd $args --graph >output |
|
155 | 155 | test_cmp "$expect" actual |
156 | 156 | ' |
157 | 157 |
|
158 | | - test "$cmd" != diff || continue |
| 158 | + case "$cmd" in diff|show) continue;; esac |
159 | 159 |
|
160 | 160 | test_expect_success "$cmd --graph $verb statGraphWidth config" ' |
161 | 161 | git -c diff.statGraphWidth=26 $cmd $args --graph >output |
|
196 | 196 | test_cmp expect actual |
197 | 197 | ' |
198 | 198 |
|
199 | | - test "$cmd" != diff || continue |
| 199 | + case "$cmd" in diff|show) continue;; esac |
200 | 200 |
|
201 | 201 | test_expect_success "$cmd --stat-width=width --graph with big change" ' |
202 | 202 | git $cmd $args --stat-width=40 --graph >output |
|
236 | 236 | test_cmp expect actual |
237 | 237 | ' |
238 | 238 |
|
239 | | - test "$cmd" != diff || continue |
| 239 | + case "$cmd" in diff|show) continue;; esac |
240 | 240 |
|
241 | 241 | test_expect_success "$cmd --stat=width --graph with big change is balanced" ' |
242 | 242 | git $cmd $args --stat-width=60 --graph >output && |
|
270 | 270 | test_cmp "$expect" actual |
271 | 271 | ' |
272 | 272 |
|
273 | | - test "$cmd" != diff || continue |
| 273 | + case "$cmd" in diff|show) continue;; esac |
274 | 274 |
|
275 | 275 | test_expect_success "$cmd --graph $verb COLUMNS (long filename)" ' |
276 | 276 | COLUMNS=200 git $cmd $args --graph >output |
|
299 | 299 | test_cmp "$expect" actual |
300 | 300 | ' |
301 | 301 |
|
302 | | - test "$cmd" != diff || continue |
| 302 | + case "$cmd" in diff|show) continue;; esac |
303 | 303 |
|
304 | 304 | test_expect_success COLUMNS_CAN_BE_1 \ |
305 | 305 | "$cmd --graph $verb prefix greater than COLUMNS (big change)" ' |
|
0 commit comments