Mercurial > hg
changeset 33577:34a8ef358c93 stable
test-dirstate-race: hide irrelevant hg status output
See the explanation for more.
Differential Revision: https://phab.mercurial-scm.org/D153
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 20 Jul 2017 18:04:21 -0700 |
parents | a41e0f1c9b69 |
children | 6192a67b7962 |
files | tests/test-dirstate-race.t |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-dirstate-race.t Tue Jul 18 20:34:22 2017 -0400 +++ b/tests/test-dirstate-race.t Thu Jul 20 18:04:21 2017 -0700 @@ -204,12 +204,16 @@ $ hg commit -m c4 created new head -Configure a merge tool that runs status in the middle of the rebase. +Configure a merge tool that runs status in the middle of the rebase. The goal of +the status call is to trigger a potential bug if fsmonitor's state is written +even though the wlock is held by another process. The output of 'hg status' in +the merge tool goes to /dev/null because we're more interested in the results of +'hg status' run after the rebase. $ cat >> $TESTTMP/mergetool-race.sh << EOF > echo "custom merge tool" > printf "c2\nc3\nc4\n" > \$1 - > hg --cwd "$TESTTMP/repo" status + > hg --cwd "$TESTTMP/repo" status > /dev/null > echo "custom merge tool end" > EOF $ cat >> $HGRCPATH << EOF @@ -220,14 +224,10 @@ > test.args=$TESTTMP/mergetool-race.sh \$output > EOF -BROKEN: the "M b" line should not be there $ hg rebase -s . -d 3 --tool test rebasing 4:b08445fd6b2a "c4" (tip) merging a custom merge tool - M a - M b - ? a.orig custom merge tool end saved backup bundle to $TESTTMP/repo/.hg/strip-backup/* (glob)