diff options
author | Matthew Blecker <matthewb@chromium.org> | 2021-08-26 13:59:01 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-27 01:41:46 +0000 |
commit | 352e821faab88e59f2e60df23b671564de595827 (patch) | |
tree | 25a028e4da102089d2bc6b7a95b7e9c66771faad /test/fpsensor.tasklist | |
parent | bc1eadcd1df76ee9d698a3ce531b422654760726 (diff) | |
download | chrome-ec-352e821faab88e59f2e60df23b671564de595827.tar.gz |
ec3po: Update unittests to use ec3po.<module> import paths.
run_tests.sh no longer uses the Python unittest module's discovery
functionality, which was forcing util/ec3po/ subdir to be directly in
sys.path as a top-level module location, which is inconsistent with how
ec3po modules are used outside of the tests.
run_tests.sh no longer auto-discovers *_unittest.py files, instead they
are individually listed as ec3po.<name>_unittest modules. It would be
straightforward to implement test module autodiscovery, but probably
isn't worth the complexity.
BRANCH=none
BUG=chromium:1031705,b:174894072,b:197618562
TEST=Within chroot, ran ./runtests.sh from within util/ec3po/ directory.
Within chroot, ran ~/trunk/src/platform/ec/util/ec3po/run_tests.sh from
a different directory.
Verified use of the files-under-test (as opposed to the files installed
in site-packages/) by adding broken code to console.py and then
re-running both invoctions above. Both then failed as intended.
Change-Id: I40c180f1d66a4d3befc548f4d763357e6cc24201
Signed-off-by: Matthew Blecker <matthewb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3123835
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'test/fpsensor.tasklist')
0 files changed, 0 insertions, 0 deletions