Patchwork D11990: test: simpler requirements matching in test-repo-compengines.t

login
register
mail settings
Submitter phabricator
Date Jan. 12, 2022, 2:11 p.m.
Message ID <differential-rev-PHID-DREV-yjgpph4zvzmll2hb2gdc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50315/
State New
Headers show

Comments

phabricator - Jan. 12, 2022, 2:11 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We focus on the requirements relevant for this tests.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-repo-compengines.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-repo-compengines.t b/tests/test-repo-compengines.t
--- a/tests/test-repo-compengines.t
+++ b/tests/test-repo-compengines.t
@@ -9,16 +9,8 @@ 
 
   $ hg init default
   $ cd default
-  $ hg debugrequires
-  dotencode
-  dirstate-v2 (dirstate-v2 !)
-  fncache
-  generaldelta
-  persistent-nodemap (rust !)
-  revlogv1
-  sparserevlog
-  store
-  testonly-simplestore (reposimplestore !)
+  $ hg debugrequires | grep compression
+  [1]
 
   $ touch foo
   $ hg -q commit -A -m 'initial commit with a lot of repeated repeated repeated text to trigger compression'
@@ -59,16 +51,8 @@ 
   $ touch bar
   $ hg --config format.revlog-compression=none -q commit -A -m 'add bar with a lot of repeated repeated repeated text'
 
-  $ hg debugrequires
-  dotencode
-  dirstate-v2 (dirstate-v2 !)
-  fncache
-  generaldelta
-  persistent-nodemap (rust !)
-  revlogv1
-  sparserevlog
-  store
-  testonly-simplestore (reposimplestore !)
+  $ hg debugrequires | grep compression
+  [1]
 
   $ hg debugrevlog -c | grep 0x78
       0x78 (x)  :   2 (100.00%)
@@ -79,17 +63,8 @@ 
 
   $ hg --config format.revlog-compression=zstd init zstd
   $ cd zstd
-  $ hg debugrequires
-  dotencode
-  dirstate-v2 (dirstate-v2 !)
-  fncache
-  generaldelta
-  persistent-nodemap (rust !)
+  $ hg debugrequires | grep compression
   revlog-compression-zstd
-  revlogv1
-  sparserevlog
-  store
-  testonly-simplestore (reposimplestore !)
 
   $ touch foo
   $ hg -q commit -A -m 'initial commit with a lot of repeated repeated repeated text'
@@ -183,17 +158,8 @@ 
   summary:     some-commit
   
 
-  $ hg debugrequires -R none-compression/
-  dotencode
+  $ hg debugrequires -R none-compression/ | grep compression
   exp-compression-none
-  dirstate-v2 (dirstate-v2 !)
-  fncache
-  generaldelta
-  persistent-nodemap (rust !)
-  revlogv1
-  sparserevlog
-  store
-  testonly-simplestore (reposimplestore !)
 
   $ $RUNTESTDIR/f -s none-compression/.hg/store/data/*
   none-compression/.hg/store/data/a.i: size=4216