test failues with terminfo on solaris

Mads Kiilerich mads at kiilerich.com
Fri Jun 24 18:14:34 CDT 2011


I see some terminfo failures on solaris / SunOS 5.10.

changeset:   13987:e0f07847f8de
user:        Danek Duvall <duvall at comfychair.org>
date:        Thu Apr 21 13:47:45 2011 -0700
summary:     color: add support for terminfo-based attributes and color

caused

--- /home/mads/hg/tests/test-status-color.t
+++ /home/mads/hg/tests/test-status-color.t.err
@@ -166,15 +166,16 @@
  hg status -A (with terminfo color):

    $ TERM=xterm hg status --config color.mode=terminfo --color=always -A
-  \x1b(B\x1b[m\x1b[32m\x1b[1mA added\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b[32m\x1b[1mA copied\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b(B\x1b[m  modified\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b[31m\x1b[1mR removed\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b[36m\x1b[1m\x1b[4m! deleted\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b[35m\x1b[1m\x1b[4m? unknown\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b[30m\x1b[1mI ignored\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b(B\x1b[mC .hgignore\x1b(B\x1b[m (esc)
-  \x1b(B\x1b[m\x1b(B\x1b[mC modified\x1b(B\x1b[m (esc)
+  no terminfo entry for setab/setaf: reverting to ECMA-48 color
+  \x1b[0;32;1mA added\x1b[0m (esc)
+  \x1b[0;32;1mA copied\x1b[0m (esc)
+  \x1b[0;0m  modified\x1b[0m (esc)
+  \x1b[0;31;1mR removed\x1b[0m (esc)
+  \x1b[0;36;1;4m! deleted\x1b[0m (esc)
+  \x1b[0;35;1;4m? unknown\x1b[0m (esc)
+  \x1b[0;30;1mI ignored\x1b[0m (esc)
+  \x1b[0;0mC .hgignore\x1b[0m (esc)
+  \x1b[0;0mC modified\x1b[0m (esc)

Patricks follow-up fix didn't change the output.

Can this be fixed in the test or code or does it work as intended so the 
test be disabled if not curses.tigetstr('setab') ?


A bit later

changeset:   14516:842a9179132c
user:        Idan Kamara <idankk86 at gmail.com>
date:        Thu Jun 02 00:43:34 2011 +0300
summary:     color: check if ui is already a subclass of colorui before 
wrapping it

caused

--- /home/mads/hg/tests/test-ui-color.py.out
+++ /home/mads/hg/tests/test-ui-color.py.err
@@ -1,5 +1,6 @@
  warning
  error
+no terminfo entry for setab/setaf: reverting to ECMA-48 color
  'buffered\n'
  colored? True
  colored? True

/Mads


More information about the Mercurial-devel mailing list