chiark / gitweb /
git-debrebase: test suite: gdr-subcommands: Better error handling/debugging
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Apr 2018 22:22:24 +0000 (23:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 21:40:13 +0000 (22:40 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-subcommands

index 371ad34..9dc99fa 100755 (executable)
@@ -59,6 +59,9 @@ subcmd () {
                git branch $before
 
                case "$checkletters" in
                git branch $before
 
                case "$checkletters" in
+               XX*)
+                       fail "$checkletters" # for debugging
+                       ;;
                N*)
                        t-expect-fail E:. \
                        t-git-debrebase $subcmd
                N*)
                        t-expect-fail E:. \
                        t-git-debrebase $subcmd
@@ -145,6 +148,9 @@ make_check () {
        f*)
                t-has-ancestor HEAD refs/heads/$before
                ;;
        f*)
                t-has-ancestor HEAD refs/heads/$before
                ;;
+       *)
+               fail "$1"
+               ;;
        esac
 }
 
        esac
 }