# t7406-submodule-update shaky ?

2 messages from 2018-07-22 to 2018-07-23. Participants: Torsten Bögershausen, Stefan Beller.
Thread: https://gitlist.dev/t/48937

## Torsten Bögershausen, 2018-07-22 21:05

Subject: t7406-submodule-update shaky ?
Message-ID: <208b2ede-4833-f062-16f2-f35b8a8ce099@web.de>
URL: https://gitlist.dev/e/208b2ede-4833-f062-16f2-f35b8a8ce099%40web.de

```
It seems that t7406 is sometimes shaky - when checking stderr in test 
case 4.

The order of the submodules may vary, sorting the stderr output makes it

more reliable (and somewhat funny to read).

Does anybody have a better idea ?


[]

cat <<EOF >expect2
Cloning into '/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/recursivesuper/super/merging'...
Cloning into '/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/recursivesuper/super/none'...
Cloning into '/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/recursivesuper/super/rebasing'...
Cloning into '/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/recursivesuper/super/submodule'...
Submodule 'merging' (/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/merging) registered for path 
'../super/merging'
Submodule 'none' (/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/none) registered for path '../super/none'
Submodule 'rebasing' (/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/rebasing) registered for path 
'../super/rebasing'
Submodule 'submodule' (/Users/tb/NoBackup/projects/git/git.pu/t/trash 
directory.t7406-submodule-update/submodule) registered for path 
'../super/submodule'
done.
done.
done.
done.
EOF

test_expect_success 'submodule update --init --recursive from 
subdirectory' '
     git -C recursivesuper/super reset --hard HEAD^ &&
     (cd recursivesuper &&
      mkdir tmp &&
      cd tmp &&
      git submodule update --init --recursive ../super >../../actual 
2>../../actual2U &&
      sort <../../actual2U >../../actual2
     ) &&
     test_i18ncmp expect actual &&
     test_i18ncmp expect2 actual2
'



```

## Stefan Beller, 2018-07-23 17:01

Subject: Re: t7406-submodule-update shaky ?
Message-ID: <CAGZ79kb=iWobgBsWQBanRdWFBoj-w2Op=HRC6afUT2giNs18Lg@mail.gmail.com>
URL: https://gitlist.dev/e/CAGZ79kb%3DiWobgBsWQBanRdWFBoj-w2Op%3DHRC6afUT2giNs18Lg%40mail.gmail.com
In-Reply-To: <208b2ede-4833-f062-16f2-f35b8a8ce099@web.de>

```
On Sun, Jul 22, 2018 at 2:05 PM Torsten Bögershausen <tboegi@web.de> wrote:
>
> It seems that t7406 is sometimes shaky - when checking stderr in test
> case 4.
>
> The order of the submodules may vary, sorting the stderr output makes it
>
> more reliable (and somewhat funny to read).
>
> Does anybody have a better idea ?

DScho just posted a fix for this, see:
https://public-inbox.org/git/pull.12.git.gitgitgadget@gmail.com/

```
