[PATCH 5 of 6 resend] tests: use small conditional section for tic requirement in test-status-color.t
Mads Kiilerich
mads at kiilerich.com
Tue Feb 4 19:04:14 CST 2014
# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1391561159 -3600
# Wed Feb 05 01:45:59 2014 +0100
# Node ID 53034bdc5fb719fbd2564f60a6747a38e0b26136
# Parent 275e5a527f35d97b600768c3b52f3d740eb4f46f
tests: use small conditional section for tic requirement in test-status-color.t
Better test coverage when curses not is available.
diff --git a/tests/test-status-color.t b/tests/test-status-color.t
--- a/tests/test-status-color.t
+++ b/tests/test-status-color.t
@@ -1,5 +1,3 @@
- $ "$TESTDIR/hghave" tic || exit 80
-
$ echo "[extensions]" >> $HGRCPATH
$ echo "color=" >> $HGRCPATH
$ echo "[color]" >> $HGRCPATH
@@ -186,8 +184,11 @@ hg status -A:
\x1b[0;0mC \x1b[0m\x1b[0;0m.hgignore\x1b[0m (esc)
\x1b[0;0mC \x1b[0m\x1b[0;0mmodified\x1b[0m (esc)
+
hg status -A (with terminfo color):
+#if tic
+
$ mkdir "$TESTTMP/terminfo"
$ TERMINFO="$TESTTMP/terminfo" tic "$TESTDIR/hgterm.ti"
$ TERM=hgterm TERMINFO="$TESTTMP/terminfo" hg status --config color.mode=terminfo --color=always -A
@@ -201,6 +202,8 @@ hg status -A (with terminfo color):
\x1b[30m\x1b[30mC \x1b[30m\x1b[30m\x1b[30m.hgignore\x1b[30m (esc)
\x1b[30m\x1b[30mC \x1b[30m\x1b[30m\x1b[30mmodified\x1b[30m (esc)
+#endif
+
$ echo "^ignoreddir$" > .hgignore
$ mkdir ignoreddir
More information about the Mercurial-devel
mailing list