This is an archive of the discontinued Mercurial Phabricator instance.

run-tests: pass color option via test case object , not global var
ClosedPublic

Authored by martinvonz on Jul 17 2017, 8:05 PM.

Details

Summary

At first I updated the color field of the 'options' object (from the
CLI parser), but then I decided to put it directly on the test case
object itself to avoid mutating the shared object (even though all
tests would have the same value).

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.Jul 17 2017, 8:05 PM
martinvonz updated this revision to Diff 252.Jul 18 2017, 12:13 PM
martinvonz edited the summary of this revision. (Show Details)Jul 18 2017, 12:58 PM
martinvonz retitled this revision from run-tests: pass color option via options object, not global var to run-tests: pass color option via test case object , not global var.
martinvonz updated this revision to Diff 257.
krbullock accepted this revision.Jul 18 2017, 3:19 PM
krbullock added a subscriber: krbullock.

Queued, thanks.

This revision is now accepted and ready to land.Jul 18 2017, 3:19 PM
This revision was automatically updated to reflect the committed changes.