diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-16 23:17:34 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-17 11:50:38 +0100 |
commit | 1951e44b06b3e179b508bcd139d8758c250e35e2 (patch) | |
tree | 89aea8086d75b2ffc2ca2b0a60c463b6f705ded0 /tests/tests/gdr-subcommands | |
parent | 5339eea5306868d16d52a8b14358f5100b9358f0 (diff) |
git-debrebase: test suite: gdr-subcommands: honour new $xopts
This allows the introduction of chaining checkletters which modify
subsequent attempts.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/gdr-subcommands')
-rwxr-xr-x | tests/tests/gdr-subcommands | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/tests/gdr-subcommands b/tests/tests/gdr-subcommands index d988321..123a0d9 100755 --- a/tests/tests/gdr-subcommands +++ b/tests/tests/gdr-subcommands @@ -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 |