Mercurial > public > mercurial-scm > hg-stable
diff tests/test-status-color.t @ 16350:4f795f5fbb0b stable
tests: make tests work if directory contains special characters
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 19:06:35 +0200 |
parents | d09ea5bbc9a4 |
children | f2719b387380 |
line wrap: on
line diff
--- a/tests/test-status-color.t Tue Apr 03 16:36:25 2012 +0200 +++ b/tests/test-status-color.t Tue Apr 03 19:06:35 2012 +0200 @@ -169,9 +169,9 @@ hg status -A (with terminfo color): - $ mkdir $TESTTMP/terminfo - $ TERMINFO=$TESTTMP/terminfo tic $TESTDIR/hgterm.ti - $ TERM=hgterm TERMINFO=$TESTTMP/terminfo hg status --config color.mode=terminfo --color=always -A + $ mkdir "$TESTTMP/terminfo" + $ TERMINFO="$TESTTMP/terminfo" tic "$TESTDIR/hgterm.ti" + $ TERM=hgterm TERMINFO="$TESTTMP/terminfo" hg status --config color.mode=terminfo --color=always -A \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc) \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc) \x1b[30m\x1b[30m modified\x1b[30m (esc)