chiark / gitweb /
git-debrebase: test suite: run gdr status
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 19:54:31 +0000 (20:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 21:40:14 +0000 (22:40 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr

index c80dead..b60ccb8 100644 (file)
@@ -24,6 +24,18 @@ t-gdr-good () {
 
        local etype netype bwtip
 
+       LC_MESSAGES=C t-git-debrebase status >../status.check
+       case $state in
+       laundered)
+               egrep '^  *branch is laundered' ../status.check
+               ;;
+       stitched|pushed)
+               egrep \
+ '^  *branch contains furniture|^  *branch is unlaundered|^  *branch needs laundering' ../status.check
+               egrep '^  stitched$' ../status.check
+               ;;
+       esac
+
        case $state in
        laundered)
                        etype=Upstream