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

login
register
mail settings
Submitter phabricator
Date July 7, 2021, 1:14 p.m.
Message ID <differential-rev-PHID-DREV-mtqaiicab3a6xbndfiwh-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49313/
State Superseded
Headers show

Comments

phabricator - July 7, 2021, 1:14 p.m.
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




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

Patch

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.