diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2023-03-15 13:55:06 +0800 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2023-03-20 18:41:27 +0800 |
commit | 04bc4a40a90c120e4d086fa85fafb5ad63186807 (patch) | |
tree | fc6082ad8829a7adcd046bc80656829bec1736c4 | |
parent | d38e0b154214629af8aa7f85ea4e2020a416ad5c (diff) | |
download | cros-ec-tests-04bc4a40a90c120e4d086fa85fafb5ad63186807.tar.gz |
tests: move TestCase import to cros.tests
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
-rw-r--r-- | cros/runners/lava_runner.py | 9 | ||||
-rw-r--r-- | cros/tests/__init__.py | 7 |
2 files changed, 8 insertions, 8 deletions
diff --git a/cros/runners/lava_runner.py b/cros/runners/lava_runner.py index 1d4b6e6..baedb83 100644 --- a/cros/runners/lava_runner.py +++ b/cros/runners/lava_runner.py @@ -4,14 +4,6 @@ import functools import unittest -from cros.tests.cros_ec_accel import * -from cros.tests.cros_ec_gyro import * -from cros.tests.cros_ec_mcu import * -from cros.tests.cros_ec_pwm import * -from cros.tests.cros_ec_rtc import * -from cros.tests.cros_ec_power import * -from cros.tests.cros_ec_extcon import * - class LavaTestResult(unittest.TextTestResult): def writeLavaSignal(self, test, result): @@ -51,6 +43,7 @@ class LavaTestRunner(unittest.TextTestRunner): if __name__ == "__main__": unittest.main( + module="cros.tests", testRunner=LavaTestRunner, # these make sure that some options that are not applicable # remain hidden from the help menu. diff --git a/cros/tests/__init__.py b/cros/tests/__init__.py index e69de29..36f6890 100644 --- a/cros/tests/__init__.py +++ b/cros/tests/__init__.py @@ -0,0 +1,7 @@ +from .cros_ec_accel import * +from .cros_ec_extcon import * +from .cros_ec_gyro import * +from .cros_ec_mcu import * +from .cros_ec_power import * +from .cros_ec_pwm import * +from .cros_ec_rtc import * |