tests: deal with differences in tic from ncurses and NetBSD
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 08 Oct 2018 21:51:20 +0200
changeset 40097 34d9846023e6
parent 40096 12a72729678e
child 40098 8a08aefa9273
tests: deal with differences in tic from ncurses and NetBSD Differential Revision: https://phab.mercurial-scm.org/D4909
tests/test-status-color.t
--- a/tests/test-status-color.t	Mon Oct 08 20:07:13 2018 +0200
+++ b/tests/test-status-color.t	Mon Oct 08 21:51:20 2018 +0200
@@ -240,8 +240,8 @@
 
 #if tic
 
-  $ mkdir "$TESTTMP/terminfo"
-  $ TERMINFO="$TESTTMP/terminfo" tic "$TESTDIR/hgterm.ti"
+  $ tic -o "$TESTTMP/terminfo" "$TESTDIR/hgterm.ti"
+  $ ln -s "$TESTTMP/terminfo" "$TESTTMP/terminfo.cdb"
   $ TERM=hgterm TERMINFO="$TESTTMP/terminfo" hg status --config color.mode=terminfo -A
   \x1b[30m\x1b[32m\x1b[1mA \x1b[30m\x1b[30m\x1b[32m\x1b[1madded\x1b[30m (esc)
   \x1b[30m\x1b[32m\x1b[1mA \x1b[30m\x1b[30m\x1b[32m\x1b[1mcopied\x1b[30m (esc)