Skip to contentSkip to conversation

t3600: rename test to describe its functionality

PATCH In review Stefan Beller 2 participants 4 messages Mar 21, 2017 – Mar 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t3600: rename test to describe its functionality

This was an oversight in 55856a35b2 (rm: absorb a submodules git dir before deletion, 2016-12-27), as the body of the test changed without adapting the test subject.

---
 t/t3600-rm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t3600-rm.sh +1 -1
index 5aa6db584c..1f87781e94 100755
@@ -658,7 +658,7 @@ test_expect_success 'rm of a populated nested submodule with nested untracked fi
 	test_cmp expect actual
 '
 
-test_expect_success 'rm of a populated nested submodule with a nested .git directory fails even when forced' '
+test_expect_success 'rm of a populated nested submodule with a nested .git directory absorbs the nested git dir' '
 	git reset --hard &&
 	git submodule update --recursive &&
 	(cd submod/subsubmod &&
Signature · 1 line
2.12.1.386.gf8442ebc0a.dirty
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Stefan Beller

This was an oversight in 55856a35b2 (rm: absorb a submodules git dir before deletion, 2016-12-27), as the body of the test changed without adapting the test subject.

---
 t/t3600-rm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t3600-rm.sh +0 -0
index 5aa6db584c..1f87781e94 100755

t/t3600-rm.sh test_expect_success 'rm of a populated nested submodule with nested untracked fi · line 661

Quoted 5 lines
t/t3600-rm.sh +1 -1
@@ -658,7 +658,7 @@ test_expect_success 'rm of a populated nested submodule with nested untracked fi
 	test_cmp expect actual
 '
 
-test_expect_success 'rm of a populated nested submodule with a nested .git directory fails even when forced' '
+test_expect_success 'rm of a populated nested submodule with a nested .git directory absorbs the nested git dir' '

This title is getting long. How about something like the following for squashing in?

With or without that change,

t/t3600-rm.sh +1 -1
index 1f87781e94..3c63455729 100755
@@ -658,7 +658,7 @@ test_expect_success 'rm of a populated nested submodule with nested untracked fi
 	test_cmp expect actual
 '
 
-test_expect_success 'rm of a populated nested submodule with a nested .git directory absorbs the nested git dir' '
+test_expect_success "rm absorbs submodule's nested .git directory" '
 	git reset --hard &&
 	git submodule update --recursive &&
 	(cd submod/subsubmod &&
#2 lore raw

PATCH 1/1 t3600: rename test to describe its functionality

This was an oversight in 55856a35b2 (rm: absorb a submodules git dir before deletion, 2016-12-27), as the body of the test changed without adapting the test subject.

---
 t/t3600-rm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t3600-rm.sh +1 -1
index 5aa6db584c..e94da6b5f1 100755
@@ -658,7 +658,7 @@ test_expect_success 'rm of a populated nested submodule with nested untracked fi
 	test_cmp expect actual
 '
 
-test_expect_success 'rm of a populated nested submodule with a nested .git directory fails even when forced' '
+test_expect_success 'rm absorbs .git directory of nested submodule' '
 	git reset --hard &&
 	git submodule update --recursive &&
 	(cd submod/subsubmod &&
Signature · 1 line
2.12.0.rc1.47.g25804914fa.dirty