chiark / gitweb /
test suite: baredebian-push: Check that history is roughly right
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Jun 2019 12:33:55 +0000 (13:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Jun 2019 12:51:06 +0000 (13:51 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/baredebian-push

index 7dfee4bc47bcbdb98140e3df58ae73b6e081906e..a5593123d0fcb3d9a1d834405b58d1905fbd9370 100755 (executable)
@@ -48,6 +48,10 @@ dpkg-buildpackage -uc -us --build=source
 t-dgit -wn --quilt=baredebian --dgit-view-save=split.b quilt-fixup
 t-dgit -wn --quilt=baredebian --dgit-view-save=split.p --new push
 
+git merge-base --is-ancestor v${v%-*} split.p
+git merge-base --is-ancestor HEAD     split.p
+set +e; git merge-base HEAD v${v%-*}; rc=$?; set -e; [ $rc = 1 ]
+
 git clean -xdff
 # t-pushed-good-* wants a clean tree to start with, but this
 #  workflow expects a mess