chiark / gitweb /
Test suite: inarchivecopy: Fix tag-vs-remote checking
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 15:04:07 +0000 (15:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:48 +0000 (19:50 +0000)
This was entirely broken, and only works because (a) $vtag^1 does not
exist, and (b) this is erroneously not spotted by t-ref-same-*.

Instead check that the suite branch has the tag (of the package which
has been moved into that suite) as a direct ancestor.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/inarchivecopy

index e87baaf3252f75c486a678d7127c20fd38f41ccb..394a21483ea6e64cd1f0172e02ad189f85b0e8ca 100755 (executable)
@@ -21,6 +21,7 @@ copy-check-good () {
        git diff $vtag
        t-refs-same refs/remotes/dgit/dgit/stable
        t-ref-head
+       t-has-parent HEAD $vtag
 }
 
 copy-check () {
@@ -31,8 +32,6 @@ copy-check () {
 
        cd $p
         t-refs-same-start
-        t-ref-same $vtag^1
-
         t-dgit fetch stable
         git merge --ff-only dgit/dgit/stable