Skip to content

Commit 83f5fa5

Browse files
stefanbellergitster
authored andcommitted
t7400: encapsulate setup code in test_expect_success
When running t7400 in a shell you observe more output than expected: ... ok 8 - setup - hide init subdirectory ok 9 - setup - repository to add submodules to ok 10 - submodule add [master (root-commit) d79ce16] one Author: A U Thor <[email protected]> 1 file changed, 1 insertion(+) create mode 100644 one.t ok 11 - redirected submodule add does not show progress ok 12 - redirected submodule add --progress does show progress ok 13 - submodule add to .gitignored path fails ... Fix the output by encapsulating the setup code in test_expect_success Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a0ef293 commit 83f5fa5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t7400-submodule-basic.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ test_expect_success 'submodule add' '
126126
test_cmp empty untracked
127127
'
128128

129-
test_create_repo parent &&
130-
test_commit -C parent one
129+
test_expect_success 'setup parent and one repository' '
130+
test_create_repo parent &&
131+
test_commit -C parent one
132+
'
131133

132134
test_expect_success 'redirected submodule add does not show progress' '
133135
git -C addtest submodule add "file://$submodurl/parent" submod-redirected \

0 commit comments

Comments
 (0)