@matheusbsbs / matheus-bagliano / commits / 41bf3bc232
Fork 0

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>

Jonathan Nieder committed Aug 16, 2010 at 03:08 UTC 41bf3bc232cf5f99fdc6d3d729536a4c4821d3bd
1 file changed +2 -2
t/t7006-pager.sh
+2 -2
@@ -134,7 +134,7 @@ test_expect_success TTY 'configuration can disable pager' '
134 ! test -e paginated.out
135 '
136
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' '
138 rm -f paginated.out &&
139 git config pager.config true &&
140 test_when_finished "git config --unset pager.config" &&
@@ -142,7 +142,7 @@ test_expect_success 'git config uses a pager if configured to' '
142 test -e paginated.out
143 '
144
145 -test_expect_success 'configuration can enable pager (from subdir)' '
145 +test_expect_success TTY 'configuration can enable pager (from subdir)' '
146 rm -f paginated.out &&
147 mkdir -p subdir &&
148 git config pager.bundle true &&