Patchwork D202: tests: fix test-flagprocessor.t flakiness

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2017, 5:14 p.m.
Message ID <75dccf6fb406ba3ee7ab47f54a75bc76@localhost.localdomain>
Download mbox | patch
Permalink /patch/22604/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2017, 5:14 p.m.
martinvonz updated this revision to Diff 475.
martinvonz edited the summary of this revision.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D202?vs=470&id=475

REVISION DETAIL
  https://phab.mercurial-scm.org/D202

AFFECTED FILES
  tests/test-flagprocessor.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, dsp
Cc: dsp, mercurial-devel

Patch

diff --git a/tests/test-flagprocessor.t b/tests/test-flagprocessor.t
--- a/tests/test-flagprocessor.t
+++ b/tests/test-flagprocessor.t
@@ -161,9 +161,11 @@ 
   > extension=$TESTDIR/flagprocessorext.py
   > duplicate=$TESTDIR/flagprocessorext.py
   > EOF
-  $ echo 'this should fail' > file
-  $ hg commit -Aqm 'add file'
+  $ hg debugrebuilddirstate
   *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'.
+  $ hg st 2>&1 | egrep 'cannot register multiple processors|flagprocessorext'
+  *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'.
+    File "*/tests/flagprocessorext.py", line *, in b64decode (glob)
 
   $ cd ..