Skip to content

Commit

Permalink
t7006 (pager): add missing TTY prerequisites
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Aug 16, 2010
1 parent 3668d42 commit 41bf3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t7006-pager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ test_expect_success TTY 'configuration can disable pager' '
! test -e paginated.out
'

test_expect_success 'git config uses a pager if configured to' '
test_expect_success TTY 'git config uses a pager if configured to' '
rm -f paginated.out &&
git config pager.config true &&
test_when_finished "git config --unset pager.config" &&
test_terminal git config --list &&
test -e paginated.out
'

test_expect_success 'configuration can enable pager (from subdir)' '
test_expect_success TTY 'configuration can enable pager (from subdir)' '
rm -f paginated.out &&
mkdir -p subdir &&
git config pager.bundle true &&
Expand Down

0 comments on commit 41bf3bc

Please sign in to comment.