Skip to content

Commit

Permalink
test: update for changed branch command line rules
Browse files Browse the repository at this point in the history
With `stg branch` no longer allows options before any of its subcommands. This affects
where the global `--color` option is allowed in command lines and eliminates 1 of 3
valid positions. The relevant test is updated for the new expectation.
  • Loading branch information
jpgrayson committed May 5, 2024
1 parent a7e2896 commit 2d65428
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions t/t0012-color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ test_expect_success TTY 'Subcommand color' '
test_expect_success TTY 'Subcommand without color' '
test_terminal stg branch -l --color never | test_decode_color >output &&
cat output | grep -v "<RESET>" &&
test_terminal stg branch --color never -l | test_decode_color >output &&
cat output | grep -v "<RESET>" &&
general_error stg branch --color never -l &&
test_terminal stg --color never branch -l | test_decode_color >output &&
cat output | grep -v "<RESET>" &&
(
Expand Down

0 comments on commit 2d65428

Please sign in to comment.