changeset 27386:55ac8006880f

test-help: tighten grep patterns Help should output section headings, but no debug commands
author timeless <timeless@mozdev.org>
date Mon, 14 Dec 2015 06:00:32 +0000
parents 20e7de6205e7
children dfab0afde928
files tests/test-help.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: