]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6402-merge-rename.sh
t6022, t6046: test expected behavior instead of testing a proxy for it
authorElijah Newren <newren@gmail.com>
Thu, 27 Feb 2020 00:14:23 +0000 (00:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Feb 2020 19:01:48 +0000 (11:01 -0800)
commit9f697ded88286804683ab2988abed23b4c63f530
treeb799cd4b4087b4efe7713c08effe4e7f34d75e3c
parentd5bb92ecede53ee8e22c13bc5d86b6a2bc620bb7
t6022, t6046: test expected behavior instead of testing a proxy for it

In t6022, we were testing for file being overwritten (or not) based on
an output message instead of checking for the file being overwritten.
Since we can check for the file being overwritten via mtime updates,
check that instead.

In t6046, we were largely checking for both the expected behavior and a
proxy for it, which is unnecessary.  The calls to test-tool also were a
bit cryptic.  Make them a little clearer.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6022-merge-rename.sh
t/t6046-merge-skip-unneeded-updates.sh