tests/git: Start an interactive fish

This makes the fish_git_prompt variable handlers kick in, meaning we
see the informative chars.

The big question here is what happens if there's a non-UTF-8 locale in
the test.

Theoretically we set LC_CTYPE, but.....
This commit is contained in:
Fabian Homborg 2021-01-19 19:16:17 +01:00
parent c5379aaf2d
commit e0455d13e7

View File

@ -1,4 +1,6 @@
#RUN: %fish %s
#RUN: %fish -i %s
# Note: ^ this is interactive so we test interactive behavior,
# e.g. the fish_git_prompt variable handlers test `status is-interactive`.
#REQUIRES: command -v git
# Do some tests with `git` - completions are interesting,
@ -31,4 +33,9 @@ echo # the git prompt doesn't print a newline
__fish_git_prompt_show_informative_status=1 fish_git_prompt
echo
#CHECK: (newbranch %1)
#CHECK: (newbranch|1)
# Confirm the mode changes back
fish_git_prompt
echo
#CHECK: (newbranch)