tests: deal with differences in tic from ncurses and NetBSD
Differential Revision: https://phab.mercurial-scm.org/D4909
--- 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)