Skip to content

Commit 8901396

Browse files
committed
tests: add test for rebase without arguments
Signed-off-by: Frank Benkstein <[email protected]>
1 parent 452f5fc commit 8901396

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

t/t2200-rebase.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@ test_expect_success 'Rebase to same base message' '
4343
grep "info: Already based on .*(master)" out
4444
'
4545

46+
test_expect_success 'Rebase without argument' '
47+
test_must_fail stg rebase 2>out &&
48+
grep -q "error: the following required arguments were not provided" out
49+
'
50+
4651
test_done

t/test-lib-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ test_must_fail_acceptable () {
10241024
fi
10251025

10261026
case "$1" in
1027-
git|__git*|scalar|test-tool|fake_tool|test_terminal)
1027+
git|__git*|scalar|test-tool|fake_tool|test_terminal|stg)
10281028
return 0
10291029
;;
10301030
*)

0 commit comments

Comments
 (0)