[PATCH 2/2] t7006 (pager): add missing TTY prerequisite
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 16, 2010, 08:11 UTC
- Message-ID
- <20100816081126.GC17566@burratino>
- In-Reply-To
- <20100816080709.GA17566@burratino>
The config pagination test should not run if there is not a tty available to force pagination on.
Reported-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> --- This one fixes for “config: run setup_git_directory_gently() sooner”.
Thanks again for the report. I’ll think more about how to make problems like this easily reproducible (a test_mentions_prereq() function?).
t/t7006-pager.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index fcd846a..fb744e3 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -134,7 +134,7 @@ 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" &&
-- 1.7.2.1.544.ga752d.dirty