( )⚙ D12381 tests: fix glob pattern for dynamic timer alignment

This is an archive of the discontinued Mercurial Phabricator instance.

tests: fix glob pattern for dynamic timer alignment
ClosedPublic

Authored by pacien on Thu, Mar 17, 6:04 AM.

Details

Summary

The number of space characters varies depending on the number of digits of the
timer, making some tests fail on slow machines in an unintended way:

diff
--- /build/mercurial-6.1/tests/test-merge-halt.t
+++ /build/mercurial-6.1/tests/test-merge-halt.t.err
@@ -210,6 +210,6 @@
   merge halted after failed merge (see hg resolve)
   [240]
   $ hg shelve --list
-  default         (* ago)    changes to: foo (glob)
+  default         (11s ago)   changes to: foo
   $ hg unshelve --abort
   unshelve of 'default' aborted
ERROR: test-merge-halt.t output changed

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pacien created this revision.Thu, Mar 17, 6:04 AM
Alphare accepted this revision.Thu, Mar 17, 6:48 AM
This revision is now accepted and ready to land.Thu, Mar 17, 6:48 AM
This revision was automatically updated to reflect the committed changes.