* [PATCH 00/14] cros-ec-tests:
@ 2023-03-13 9:41 Tzung-Bi Shih
2023-03-13 9:41 ` [PATCH 01/14] lava_runner: rename to LavaTestResult Tzung-Bi Shih
0 siblings, 1 reply; 2+ messages in thread
From: Tzung-Bi Shih @ 2023-03-13 9:41 UTC (permalink / raw)
To: bleung, groeck
Cc: chrome-platform, tzungbi, guillaume.tucker, denys.f, ricardo.canuelo
The series changes cros-ec-tests[1].
It applys some clean-ups and fixes obvious errors.
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/cros-ec-tests.git/
Tzung-Bi Shih (14):
lava_runner: rename to LavaTestResult
lava_runner: use TextTestRunner
lava_runner: use TextTestResult
lava_runner: respect to verbosity flag from unittest framework
helpers/sysfs: fix NameError
helpers/mcu: fix ResourceWarning on /dev/cros_ec
cros_ec_pwm: fix ResourceWarning on /sys/kernel/debug/pwm
treewide: use context manager on file objects
cros_ec_pwm: use RE to search EC backlight PWM
helpers/mcu: fix packet too long error
helpers/mcu: fix EC_CMD_GET_FEATURES usage
treewide: remove "r" in open() if reading mode
treewide: don't use "+" operator for constructing paths
treewide: don't use "+" operator for concatenating strings
cros/helpers/kernel.py | 5 ++-
cros/helpers/mcu.py | 57 ++++++++++++++------------------
cros/helpers/sysfs.py | 16 ++++-----
cros/runners/lava_runner.py | 64 +++++++++++++++---------------------
cros/tests/cros_ec_accel.py | 13 ++++----
cros/tests/cros_ec_extcon.py | 11 ++++---
cros/tests/cros_ec_pwm.py | 58 +++++++++++++-------------------
cros/tests/cros_ec_rtc.py | 8 ++---
setup.py | 2 +-
9 files changed, 99 insertions(+), 135 deletions(-)
--
2.40.0.rc1.284.g88254d51c5-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 01/14] lava_runner: rename to LavaTestResult
2023-03-13 9:41 [PATCH 00/14] cros-ec-tests: Tzung-Bi Shih
@ 2023-03-13 9:41 ` Tzung-Bi Shih
0 siblings, 0 replies; 2+ messages in thread
From: Tzung-Bi Shih @ 2023-03-13 9:41 UTC (permalink / raw)
To: bleung, groeck
Cc: chrome-platform, tzungbi, guillaume.tucker, denys.f, ricardo.canuelo
To simplify, rename from LavaTextTestResult to LavaTestResult.
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
---
cros/runners/lava_runner.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cros/runners/lava_runner.py b/cros/runners/lava_runner.py
index 8a570dda064f..2e8b1c42bdeb 100755
--- a/cros/runners/lava_runner.py
+++ b/cros/runners/lava_runner.py
@@ -13,7 +13,7 @@ from cros.tests.cros_ec_power import *
from cros.tests.cros_ec_extcon import *
-class LavaTextTestResult(unittest.TestResult):
+class LavaTestResult(unittest.TestResult):
def __init__(self, runner):
unittest.TestResult.__init__(self)
self.runner = runner
@@ -56,7 +56,7 @@ class LavaTestRunner:
self.stream.write(message)
def run(self, test):
- result = LavaTextTestResult(self)
+ result = LavaTestResult(self)
test(result)
result.testsRun
return result
--
2.40.0.rc1.284.g88254d51c5-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-13 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 9:41 [PATCH 00/14] cros-ec-tests: Tzung-Bi Shih
2023-03-13 9:41 ` [PATCH 01/14] lava_runner: rename to LavaTestResult Tzung-Bi Shih
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).