comparison tests/test-extension.t @ 39190:68b6383a840a

tests: conditionalize color output on abort This broke in afc4ad706f9c. I'm not sure why other aborts don't need to be conditionalized, but `hg help foo` does abort in red for both msys and cmd.exe.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 18 Aug 2018 15:15:04 -0400
parents f2e645dc6a67
children d7ac6dafc609
comparison
equal deleted inserted replaced
39189:2dfc22620a54 39190:68b6383a840a
1253 > @command(123) 1253 > @command(123)
1254 > def g(): 1254 > def g():
1255 > pass 1255 > pass
1256 > EOF 1256 > EOF
1257 $ hg --config extensions.path=./path.py help foo > /dev/null 1257 $ hg --config extensions.path=./path.py help foo > /dev/null
1258 abort: no such help topic: foo 1258 abort: no such help topic: foo (no-windows !)
1259 (try 'hg help --keyword foo') 1259 (try 'hg help --keyword foo') (no-windows !)
1260 \x1b[0;31mabort: no such help topic: foo\x1b[0m (esc) (windows !)
1261 \x1b[0;31m(try 'hg help --keyword foo')\x1b[0m (esc) (windows !)
1260 [255] 1262 [255]
1261 1263
1262 $ cat > throw.py <<EOF 1264 $ cat > throw.py <<EOF
1263 > from mercurial import commands, registrar, util 1265 > from mercurial import commands, registrar, util
1264 > cmdtable = {} 1266 > cmdtable = {}