chiark / gitweb /
git-debrebase: test suite: gdr-subcommands: honour new $xopts
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 22:17:34 +0000 (23:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Jun 2018 10:50:38 +0000 (11:50 +0100)
This allows the introduction of chaining checkletters which modify
subsequent attempts.

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

index d988321..123a0d9 100755 (executable)
@@ -63,22 +63,24 @@ subcmd () {
                before=before-$work
                git branch $before
 
+               local xopts=''
+
                case "$checkletters" in
                XX*)
                        fail "$checkletters" # for debugging
                        ;;
                N*)
                        t-expect-fail E:. \
-                       t-git-debrebase $subcmd
-                       t-git-debrebase --noop-ok $subcmd
+                       t-git-debrebase $xopts $subcmd
+                       t-git-debrebase $xopts --noop-ok $subcmd
                        ;;
                [EF]:*)
                        t-expect-fail "$checkletters" \
-                       t-git-debrebase $subcmd
+                       t-git-debrebase $xopts $subcmd
                        continue
                        ;;
                *)
-                       t-git-debrebase $subcmd
+                       t-git-debrebase $xopts $subcmd
                        ;;
                esac