sapling/scripts
Jun Wu 2698cf1d22 scripts: unify spwaning run-test logic
Summary:
Previously, lint.py and unit.py have different logic spawning
run-tests.py.

The logic in `unit.py` is more robust: it sets `PYTHONPATH` and
`cwd`. It sets `-j` according to CPU cores. It can find `run-tests.py`
even if `MERCURIALRUNTESTS` is not set. You can run the script
from any directory (not only reporoot).

Test Plan: Run `lint.py` and `unit.py`, from the `scripts` directory and reporoot.

Reviewers: #sourcecontrol, stash

Reviewed By: stash

Subscribers: stash, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D4095437

Signature: t1:4095437:1477663516:13a7ac4270435c272077132915f9d02cc98a5afb
2016-10-28 13:58:48 +01:00
..
hg-new-workdir test-check: backport test-check-execute from core hg 2016-10-18 17:58:45 +01:00
lint.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00
scm-prompt.sh scm-prompt: use double square brackets everywhere 2016-07-22 16:31:51 -07:00
unit.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00
utils.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00