comparison tests/test-help.t @ 39221:d7ac6dafc609

tests: drop an unnecessary redirect to /dev/null This eliminates the need to conditionalize the color output, because NUL on Windows is a tty. Credit to Yuya for recognizing this.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Aug 2018 22:04:22 -0400
parents 68b6383a840a
children 0dfcc348d383
comparison
equal deleted inserted replaced
39220:0998f843fcb9 39221:d7ac6dafc609
1478 $ hg help -e -c -k date |egrep '^(Topics|Extensions|Commands):' 1478 $ hg help -e -c -k date |egrep '^(Topics|Extensions|Commands):'
1479 Extensions: 1479 Extensions:
1480 Commands: 1480 Commands:
1481 $ hg help -c commit > /dev/null 1481 $ hg help -c commit > /dev/null
1482 $ hg help -e -c commit > /dev/null 1482 $ hg help -e -c commit > /dev/null
1483 $ hg help -e commit > /dev/null 1483 $ hg help -e commit
1484 abort: no such help topic: commit (no-windows !) 1484 abort: no such help topic: commit
1485 (try 'hg help --keyword commit') (no-windows !) 1485 (try 'hg help --keyword commit')
1486 \x1b[0;31mabort: no such help topic: commit\x1b[0m (esc) (windows !)
1487 \x1b[0;31m(try 'hg help --keyword commit')\x1b[0m (esc) (windows !)
1488 [255] 1486 [255]
1489 1487
1490 Test keyword search help 1488 Test keyword search help
1491 1489
1492 $ cat > prefixedname.py <<EOF 1490 $ cat > prefixedname.py <<EOF