This is an archive of the discontinued Mercurial Phabricator instance.

tests: de-flake test-run-tests.t's "--jobs=2 --first" test
ClosedPublic

Authored by martinvonz on Oct 18 2017, 7:31 PM.

Details

Summary

Once in a while, test-nothing.t finished before test-failure.t or
test-failure-copy.t (I haven't checked which one actually gets run
first). Since there already are two tests that will fail in the same
way, just run those two instead so the diff will be reproducible and
not timing-dependent.

The test case was added in 9a20f53e436f (run-tests: handle --jobs and
--first gracefully, 2014-10-09), and I have checked that backing that
out results in two failures being printed. Note that the summary may
still include multiple tests even if --first is given, it's just that
the diff is only printed for the first failure.

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

martinvonz created this revision.Oct 18 2017, 7:31 PM
quark accepted this revision.Oct 18 2017, 8:46 PM
durin42 accepted this revision.Oct 19 2017, 10:56 AM
This revision is now accepted and ready to land.Oct 19 2017, 10:56 AM
This revision was automatically updated to reflect the committed changes.