# HG changeset patch # User Mads Kiilerich # Date 1321832372 -3600 # Node ID f8c2547c8f169eb06c45e38dbaae94b0f929d3f5 # Parent e419c8a4862bfc88187aa95c66f9948b503ccbf1 tests: skip color test on platforms without tic [ original upstream message ] diff -r e419c8a4862b -r f8c2547c8f16 tests/hghave --- a/tests/hghave Mon Nov 21 11:51:46 2011 +0000 +++ 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"),