Mercurial > hg-stable
changeset 15539:d09ea5bbc9a4
tests: skip color test on platforms without tic
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 21 Nov 2011 00:39:32 +0100 |
parents | fbbb323ce697 |
children | ad2c5561cada |
files | tests/hghave tests/test-status-color.t |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave Sun Nov 20 16:07:07 2011 -0600 +++ b/tests/hghave Mon Nov 21 00:39:32 2011 +0100 @@ -218,6 +218,9 @@ def has_serve(): return os.name != 'nt' # gross approximation +def has_tic(): + return matchoutput('test -x "`which tic`"', '') + checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), @@ -248,6 +251,7 @@ "svn-bindings": (has_svn_bindings, "subversion python bindings"), "symlink": (has_symlink, "symbolic links"), "system-sh": (has_system_sh, "system() uses sh"), + "tic": (has_tic, "terminfo compiler"), "tla": (has_tla, "GNU Arch tla client"), "unix-permissions": (has_unix_permissions, "unix-style permissions"), "windows": (has_windows, "Windows"),