t3030: use test_path_is_missing()
We use `test_must_fail test -d` to ensure that the directory is removed. However, test_must_fail() should only be used for git commands. Use test_path_is_missing() instead to check that the directory has been removed. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Denton Liu committed
Jan 6, 2020 at 23:53 UTC
245b9ba0ba51a9e19f77a2a96a82a4f021d4a9fc
1 file changed
+1
-1
t/t3030-merge-recursive.sh
+1
-1
@@ -604,7 +604,7 @@ test_expect_success 'merge removes empty directories' '
604
git commit -mremoved-d/e &&
605
git checkout master &&
606
git merge -s recursive rm &&
607
- test_must_fail test -d d
607
+ test_path_is_missing d
608
'
609
610
test_expect_success 'merge-recursive simple w/submodule' '