tests: factor out terminal handling from t7006
commitcc4e48fc1eafdb9bec037f10c22708a26fd25ef6
authorJeff King <peff@peff.net>
Sat, 16 Oct 2010 18:36:56 +0000 (17 02:36 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Oct 2010 23:20:19 +0000 (18 16:20 -0700)
tree436387a4e210abb6f414b3b86a49da44451c50bf
parentc752e7f3e8d96a9673ad248addc9418164bd3ce6
tests: factor out terminal handling from t7006

Other tests besides the pager ones may want to check how we handle
output to a terminal. This patch makes the code reusable.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-terminal.sh [new file with mode: 0644]
t/t7006-pager.sh
t/test-terminal.perl [moved from t/t7006/test-terminal.perl with 100% similarity]