Patchwork D11873: upgrade: don't use `dd status=none` in the test

login
register
mail settings
Submitter phabricator
Date Dec. 7, 2021, 9:06 a.m.
Message ID <differential-rev-PHID-DREV-rf5zsybbr2ax4gozeigz-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50199/
State Superseded
Headers show

Comments

phabricator - Dec. 7, 2021, 9:06 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This breaks on Windows, so lets use `>2 /dev/null` like in the other tests.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  tests/test-upgrade-repo.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-upgrade-repo.t b/tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -1667,7 +1667,7 @@ 
   $ hg debugformat -v | grep dirstate-v2
   dirstate-v2:        yes     no      no
   $ hg status
-  $ dd status=none bs=12 count=1 if=.hg/dirstate
+  $ dd bs=12 count=1 if=.hg/dirstate 2> /dev/null
   dirstate-v2
 
 Downgrade from dirstate-v2