Skip to content

Commit 20fd60b

Browse files
committed
t1000: use "test_must_fail git frotz", not "! git frotz"
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7092882 commit 20fd60b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

t/t1000-read-tree-m-3way.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ test_expect_success '1 - must not have an entry not in A.' "
214214
rm -f .git/index XX &&
215215
echo XX >XX &&
216216
git update-index --add XX &&
217-
! git read-tree -m $tree_O $tree_A $tree_B
217+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
218218
"
219219

220220
test_expect_success \
@@ -254,7 +254,7 @@ test_expect_success \
254254
cp .orig-A/AN AN &&
255255
echo extra >>AN &&
256256
git update-index --add AN &&
257-
! git read-tree -m $tree_O $tree_A $tree_B
257+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
258258
"
259259

260260
test_expect_success \
@@ -271,7 +271,7 @@ test_expect_success \
271271
cp .orig-A/AA AA &&
272272
git update-index --add AA &&
273273
echo extra >>AA &&
274-
! git read-tree -m $tree_O $tree_A $tree_B
274+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
275275
"
276276

277277
test_expect_success \
@@ -280,7 +280,7 @@ test_expect_success \
280280
cp .orig-A/AA AA &&
281281
echo extra >>AA &&
282282
git update-index --add AA &&
283-
! git read-tree -m $tree_O $tree_A $tree_B
283+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
284284
"
285285

286286
test_expect_success \
@@ -306,31 +306,31 @@ test_expect_success \
306306
cp .orig-A/LL LL &&
307307
echo extra >>LL &&
308308
git update-index --add LL &&
309-
! git read-tree -m $tree_O $tree_A $tree_B
309+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
310310
"
311311

312312
test_expect_success \
313313
'6 - must not exist in O && !A && !B case' "
314314
rm -f .git/index DD &&
315315
echo DD >DD
316316
git update-index --add DD &&
317-
! git read-tree -m $tree_O $tree_A $tree_B
317+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
318318
"
319319

320320
test_expect_success \
321321
'7 - must not exist in O && !A && B && O!=B case' "
322322
rm -f .git/index DM &&
323323
cp .orig-B/DM DM &&
324324
git update-index --add DM &&
325-
! git read-tree -m $tree_O $tree_A $tree_B
325+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
326326
"
327327

328328
test_expect_success \
329329
'8 - must not exist in O && !A && B && O==B case' "
330330
rm -f .git/index DN &&
331331
cp .orig-B/DN DN &&
332332
git update-index --add DN &&
333-
! git read-tree -m $tree_O $tree_A $tree_B
333+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
334334
"
335335

336336
test_expect_success \
@@ -347,7 +347,7 @@ test_expect_success \
347347
cp .orig-A/MD MD &&
348348
git update-index --add MD &&
349349
echo extra >>MD &&
350-
! git read-tree -m $tree_O $tree_A $tree_B
350+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
351351
"
352352

353353
test_expect_success \
@@ -356,7 +356,7 @@ test_expect_success \
356356
cp .orig-A/MD MD &&
357357
echo extra >>MD &&
358358
git update-index --add MD &&
359-
! git read-tree -m $tree_O $tree_A $tree_B
359+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
360360
"
361361

362362
test_expect_success \
@@ -373,7 +373,7 @@ test_expect_success \
373373
cp .orig-A/ND ND &&
374374
git update-index --add ND &&
375375
echo extra >>ND &&
376-
! git read-tree -m $tree_O $tree_A $tree_B
376+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
377377
"
378378

379379
test_expect_success \
@@ -382,7 +382,7 @@ test_expect_success \
382382
cp .orig-A/ND ND &&
383383
echo extra >>ND &&
384384
git update-index --add ND &&
385-
! git read-tree -m $tree_O $tree_A $tree_B
385+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
386386
"
387387

388388
test_expect_success \
@@ -399,7 +399,7 @@ test_expect_success \
399399
cp .orig-A/MM MM &&
400400
git update-index --add MM &&
401401
echo extra >>MM &&
402-
! git read-tree -m $tree_O $tree_A $tree_B
402+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
403403
"
404404

405405
test_expect_success \
@@ -408,7 +408,7 @@ test_expect_success \
408408
cp .orig-A/MM MM &&
409409
echo extra >>MM &&
410410
git update-index --add MM &&
411-
! git read-tree -m $tree_O $tree_A $tree_B
411+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
412412
"
413413

414414
test_expect_success \
@@ -434,7 +434,7 @@ test_expect_success \
434434
cp .orig-A/SS SS &&
435435
echo extra >>SS &&
436436
git update-index --add SS &&
437-
! git read-tree -m $tree_O $tree_A $tree_B
437+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
438438
"
439439

440440
test_expect_success \
@@ -477,7 +477,7 @@ test_expect_success \
477477
cp .orig-A/NM NM &&
478478
git update-index --add NM &&
479479
echo extra >>NM &&
480-
! git read-tree -m $tree_O $tree_A $tree_B
480+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
481481
"
482482

483483
test_expect_success \
@@ -486,7 +486,7 @@ test_expect_success \
486486
cp .orig-A/NM NM &&
487487
echo extra >>NM &&
488488
git update-index --add NM &&
489-
! git read-tree -m $tree_O $tree_A $tree_B
489+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
490490
"
491491

492492
test_expect_success \
@@ -512,7 +512,7 @@ test_expect_success \
512512
cp .orig-A/NN NN &&
513513
echo extra >>NN &&
514514
git update-index --add NN &&
515-
! git read-tree -m $tree_O $tree_A $tree_B
515+
test_must_fail git read-tree -m $tree_O $tree_A $tree_B
516516
"
517517

518518
# #16

0 commit comments

Comments
 (0)