test-help: tighten grep patterns
authortimeless <timeless@mozdev.org>
Mon, 14 Dec 2015 06:00:32 +0000
changeset 27386 55ac8006880f
parent 27385 20e7de6205e7
child 27387 dfab0afde928
test-help: tighten grep patterns Help should output section headings, but no debug commands
tests/test-help.t
--- a/tests/test-help.t	Mon Dec 14 11:19:48 2015 -0800
+++ b/tests/test-help.t	Mon Dec 14 06:00:32 2015 +0000
@@ -1209,11 +1209,11 @@
 
 Test -e / -c / -k combinations
 
-  $ hg help -c|egrep '^\S|debug'
+  $ hg help -c|egrep '^[A-Z].*:|^ debug'
   Commands:
-  $ hg help -e|egrep '^\S'
+  $ hg help -e|egrep '^[A-Z].*:|^ debug'
   Extensions:
-  $ hg help -k|egrep '^\S'
+  $ hg help -k|egrep '^[A-Z].*:'
   Topics:
   Commands:
   Extensions: