chiark / gitweb /
test suite: lib: t-git-fsck: put dgit-test-fsck.errs in git dir
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Jan 2018 23:15:51 +0000 (23:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 17:24:53 +0000 (17:24 +0000)
This needs to not be in the working tree; it causes trouble there.

This was broken in 090071ae8e31c8f81283af477c1114835ed8fd02
"test suite: Tolerate worktrees when trying to git-fsck"

Reported-by: Sean Whitton <spwhitton@spwhitton.name>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
tests/lib

index 380165c..a186c71 100644 (file)
@@ -26,10 +26,11 @@ dgit (4.2~) experimental; urgency=medium
   Test suite:
   * dpkgsourceignores-docs: Correct restriction (so autopkgtest
     won't try to run it).
-  Test suite:
   * Additional workarounds for gnupg races (#868550) including
     retrying each individual test once, and more sophisticated
     wrapper for gpg (with locking and, sometimes saves stdin).
+  * oldnewtagalt: Fix regression when running outside git tree,
+    introduced in 4.1.
 
  --
 
index 277ad5e..fcc2a69 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -360,7 +360,7 @@ t-expect-fsck-fail () {
 }
 
 t-git-fsck () {
-       local fsckerrs=dgit-test-fsck.errs
+       local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
 
        set +e
        LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \