This is an archive of the discontinued Mercurial Phabricator instance.

test: stabilize test-run-tests.t output
AbandonedPublic

Authored by lothiraldan on Feb 14 2019, 9:38 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

We have reached a point where the duration in test-run-tests.t were greater
or equal than 10s, which doesn't match anymore the regex. For example here:
https://ci.octobus.net/blue/organizations/jenkins/MercurialPy2/detail/MercurialPy2/276/pipeline

           "diff": "", ? (re)
-          "end": "\s*[\d\.]{4,5}", ? (re)
+          "end": "10.040",
           "result": "skip", ? (re)

Instead of accepting more characters, I changed the regex to accept any number
of digits before the . than 3 or 4 digits after. This way the regex is more
precise (only one . is authorized and we can ensure that the precision
doesn't change).

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped