diff tests/test-context-metadata.t @ 34061:11499bad0359

check-code: forbid "\S" in egrep regular expression BSD `egrep` does not like it. So let's forbid it. Differential Revision: https://phab.mercurial-scm.org/D610
author Jun Wu <quark@fb.com>
date Fri, 01 Sep 2017 16:44:30 -0700
parents be814edf3306
children 194463554ba5
line wrap: on
line diff
--- a/tests/test-context-metadata.t	Fri Sep 01 15:47:32 2017 -0700
+++ b/tests/test-context-metadata.t	Fri Sep 01 16:44:30 2017 -0700
@@ -36,7 +36,7 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     Changed
   
-  $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'parents=0' 2>&1 | egrep '^\S*Error'
+  $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'parents=0' 2>&1 | egrep '^RuntimeError'
   RuntimeError: can't reuse the manifest: its p1 doesn't match the new ctx p1
 
   $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'user=foo <foo@example.com>'