mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
t4201: make tests work with and without the MINGW prerequiste
Make sure the tests do not depend on the result of the previous tests. With MINGW prerequisite satisfied, a "reset to original and rebuild" in an earlier test was skipped, resulting in different history being tested with this and the next tests. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
03f40829ad
commit
bc44f9332a
|
@ -191,8 +191,14 @@ test_expect_success 'shortlog with --output=<file>' '
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'shortlog --committer (internal)' '
|
test_expect_success 'shortlog --committer (internal)' '
|
||||||
|
git checkout --orphan side &&
|
||||||
|
git commit --allow-empty -m one &&
|
||||||
|
git commit --allow-empty -m two &&
|
||||||
|
GIT_COMMITTER_NAME="Sin Nombre" git commit --allow-empty -m three &&
|
||||||
|
|
||||||
cat >expect <<-\EOF &&
|
cat >expect <<-\EOF &&
|
||||||
3 C O Mitter
|
2 C O Mitter
|
||||||
|
1 Sin Nombre
|
||||||
EOF
|
EOF
|
||||||
git shortlog -nsc HEAD >actual &&
|
git shortlog -nsc HEAD >actual &&
|
||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
|
|
Loading…
Reference in a new issue