Commit Graph

2 Commits

Author SHA1 Message Date
Wyatt Hepler
01197109b2 pw_presubmit: Don't use setup.py test
Previously, Python tests were executed using setup.py test. There are a
few issues with this. First, with the current setup, tests are executed
twice for some reason. Occasionally other odd errors occur. Also,
setuptools has deprecated the test command for setup.py and states that
it will be removed in a future version.

This change discovers tests by finding the package directories of
affected files and searching for tests with customizable patterns
('*_test.py' by default). This approach is simpler, faster, and no
longer relies on setuptools or unittest.

Since setup.py test is no longer used, this change removes test suite
discovery from Pigweed's setup.py files.

Change-Id: I3de6c5d05ea5e38eea27b0e3aca956fe468035be
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12662
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2020-06-22 20:16:43 +00:00
Rob Mohr
f82e7a843c Add 'pw doctor'.
Add 'pw doctor' command to check environment is correctly set up
for pigweed. For now contains minimal checks.

Change-Id: Icb132c89bb272b52c57dae0451b24966b48d4e90
Bug: 28
2020-01-03 22:28:05 +00:00