test-flagprocessor: remove unnecessary greps
authorJun Wu <quark@fb.com>
Thu, 06 Apr 2017 19:01:51 -0700
changeset 31838 c39e7c4b535c
parent 31837 37e793918c07
child 31839 5b048d5f8884
test-flagprocessor: remove unnecessary greps The "2>&1 | egrep ..." code is used for removing uninteresting parts from tracebacks. Now the test does not dump tracebacks, they can be removed.
tests/test-flagprocessor.t
--- a/tests/test-flagprocessor.t	Mon Apr 03 09:31:39 2017 -0700
+++ b/tests/test-flagprocessor.t	Thu Apr 06 19:01:51 2017 -0700
@@ -187,7 +187,7 @@
   $ hg bundle --base 1 bundle.hg
   4 changesets found
   $ hg --config extensions.strip= strip -r 2 --no-backup --force -q
-  $ hg -R bundle.hg log --stat -T '{rev} {desc}\n' base64 2>&1 | egrep -v '^(\*\*|  )'
+  $ hg -R bundle.hg log --stat -T '{rev} {desc}\n' base64
   5 branching
    base64 |  2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)
@@ -213,9 +213,8 @@
    1 files changed, 1 insertions(+), 0 deletions(-)
   
 
-  $ hg bundle -R bundle.hg --base 1 bundle-again.hg -q 2>&1 | egrep -v '^(\*\*|  )'
-  [1]
-  $ hg -R bundle-again.hg log --stat -T '{rev} {desc}\n' base64 2>&1 | egrep -v '^(\*\*|  )'
+  $ hg bundle -R bundle.hg --base 1 bundle-again.hg -q
+  $ hg -R bundle-again.hg log --stat -T '{rev} {desc}\n' base64
   5 branching
    base64 |  2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)