changeset 11141:df5d1d571d27

tests: force color ansi mode on Windows
author Patrick Mezard <pmezard@gmail.com>
date Mon, 10 May 2010 22:46:16 +0200
parents 1f26cf0a3663
children 0bf79efeaa20
files tests/test-bookmarks tests/test-bookmarks-current tests/test-churn tests/test-grep tests/test-log tests/test-mq-guards tests/test-status-color
diffstat 7 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bookmarks	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-bookmarks	Mon May 10 22:46:16 2010 +0200
@@ -15,7 +15,8 @@
 hg bookmarks
 
 echo % list bookmarks with color
-hg --config extensions.color= bookmarks --color=always
+hg --config extensions.color= --config color.mode=ansi \
+    bookmarks --color=always
 
 echo a > a
 hg add a
--- a/tests/test-bookmarks-current	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-bookmarks-current	Mon May 10 22:46:16 2010 +0200
@@ -18,7 +18,8 @@
 hg bookmark
 
 echo % list bookmarks with color
-hg --config extensions.color= bookmark --color=always
+hg --config extensions.color= --config color.mode=ansi \
+    bookmark --color=always
 
 echo % update to bookmark X
 hg update X
--- a/tests/test-churn	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-churn	Mon May 10 22:46:16 2010 +0200
@@ -53,7 +53,8 @@
 hg ci -Am "removed d/g/f2.txt" -u user1 -d 14:00 d/g/f2.txt
 hg churn --diffstat
 echo % churn --diffstat with color
-hg --config extensions.color= churn --diffstat --color=always
+hg --config extensions.color= churn --config color.mode=ansi \
+    --diffstat --color=always
 
 echo % changeset number churn
 hg churn -c
--- a/tests/test-grep	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-grep	Mon May 10 22:46:16 2010 +0200
@@ -22,7 +22,8 @@
 echo % simple
 hg grep port port
 echo % simple with color
-hg --config extensions.color= grep --color=always port port
+hg --config extensions.color= grep --config color.mode=ansi \
+    --color=always port port
 echo % all
 hg grep --traceback --all -nu port port
 echo % other
--- a/tests/test-log	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-log	Mon May 10 22:46:16 2010 +0200
@@ -119,7 +119,8 @@
 hg log -d -1
 
 echo '% log -p -l2 --color=always'
-hg --config extensions.color= log -p -l2 --color=always
+hg --config extensions.color= --config color.mode=ansi \
+    log -p -l2 --color=always
 
 echo '% log -r tip --stat'
 hg log -r tip --stat
--- a/tests/test-mq-guards	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-mq-guards	Mon May 10 22:46:16 2010 +0200
@@ -100,7 +100,8 @@
 echo % list patches and guards
 hg qguard -l
 echo % list patches and guards with color
-hg --config extensions.color= qguard -l --color=always
+hg --config extensions.color= qguard --config color.mode=ansi \
+    -l --color=always
 echo % list series
 hg qseries -v
 echo % list guards
--- a/tests/test-status-color	Mon May 10 21:44:00 2010 +0200
+++ b/tests/test-status-color	Mon May 10 22:46:16 2010 +0200
@@ -2,6 +2,8 @@
 
 echo "[extensions]" >> $HGRCPATH
 echo "color=" >> $HGRCPATH
+echo "[color]" >> $HGRCPATH
+echo "mode=ansi" >> $HGRCPATH
 
 hg init repo1
 cd repo1