D10999: compat: normalise path before comparison in revlog splitting test

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Wed Jul 7 13:14:36 UTC 2021


Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This fixes the test on Window.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-transaction-rollback-on-revlog-split.t

CHANGE DETAILS

diff --git a/tests/test-transaction-rollback-on-revlog-split.t b/tests/test-transaction-rollback-on-revlog-split.t
--- a/tests/test-transaction-rollback-on-revlog-split.t
+++ b/tests/test-transaction-rollback-on-revlog-split.t
@@ -10,14 +10,13 @@
   > 
   > def extsetup(ui):
   >     def close(orig, *args, **kwargs):
-  >         path = args[0]._atomictempfile__name
+  >         path = util.normpath(args[0]._atomictempfile__name)
   >         if path.endswith(b'/.hg/store/data/file.i'):
   >             os._exit(80)
   >         return orig(*args, **kwargs)
   >     extensions.wrapfunction(util.atomictempfile, 'close', close)
   > EOF
 
-
 Test offset computation to correctly factor in the index entries themselve.
 Also test that the new data size has the correct size if the transaction is aborted
 after the index has been replaced.



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


More information about the Mercurial-devel mailing list