Skip to content

Commit 41bf3bc

Browse files
jrngitster
authored andcommitted
t7006 (pager): add missing TTY prerequisites
The "git bundle unbundle" and "git config" pagination tests are not supposed to run when stdout is not a terminal and IO::Pty not available to make one on the fly. Reported-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3668d42 commit 41bf3bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

t/t7006-pager.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ test_expect_success TTY 'configuration can disable pager' '
134134
! test -e paginated.out
135135
'
136136

137-
test_expect_success 'git config uses a pager if configured to' '
137+
test_expect_success TTY 'git config uses a pager if configured to' '
138138
rm -f paginated.out &&
139139
git config pager.config true &&
140140
test_when_finished "git config --unset pager.config" &&
141141
test_terminal git config --list &&
142142
test -e paginated.out
143143
'
144144

145-
test_expect_success 'configuration can enable pager (from subdir)' '
145+
test_expect_success TTY 'configuration can enable pager (from subdir)' '
146146
rm -f paginated.out &&
147147
mkdir -p subdir &&
148148
git config pager.bundle true &&

0 commit comments

Comments
 (0)