git: improve test logging

On windows, git might report undocumented "DA rename.txt" file status in this case.

GitOrigin-RevId: 3039b678975605a807afed7976885055bbaf0d88
This commit is contained in:
Aleksey Pivovarov
2019-11-07 02:40:58 +00:00
committed by intellij-monorepo-bot
parent e465b01643
commit 6ee1fc0104
@@ -239,9 +239,18 @@ class GitChangeProviderVersionedTest : GitChangeProviderTest() {
// do not trigger move via VcsVFSListener
rm("RENAME.txt")
assertFalse(child("RENAME.txt").exists())
assertFalse(child("rename.txt").exists())
LOG.debug("STATUS BEFORE\n" + git("status"))
LOG.debug("STATUS BEFORE\n" + git("status --short"))
touch("rename.txt", "rename_file_content")
repo.git("add -N rename.txt")
LOG.debug("STATUS AFTER\n" + git("status"))
LOG.debug("STATUS AFTER\n" + git("status --short"))
VfsUtil.markDirtyAndRefresh(false, true, true, projectRoot)
dirty(projectRoot)