diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-22 07:57:58 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-26 18:51:49 -0600 |
commit | 0af38d12d98070bc09001e200b15c7e0d6a80388 (patch) | |
tree | 0fc583e69b99668aa716d3de5f56ba2b362e0711 /test/cmd/pwm.c | |
parent | 0e77c2b6117c1a8497676b33de85766c3f3a904c (diff) |
test: cmd: Drop unnecessary console_record_reset_enable()
It is seldom necessary to call this function. Drop its use in the
command tests.
Add a few extra checks to the wget test so that resetting is not
needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd/pwm.c')
-rw-r--r-- | test/cmd/pwm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/cmd/pwm.c b/test/cmd/pwm.c index f8de03fd6d1..0d47e2d8abb 100644 --- a/test/cmd/pwm.c +++ b/test/cmd/pwm.c @@ -22,8 +22,6 @@ static int dm_test_pwm_cmd(struct unit_test_state *uts) ut_assertok(uclass_get_device(UCLASS_PWM, 0, &dev)); ut_assertnonnull(dev); - ut_assertok(console_record_reset_enable()); - /* pwm <invert> <pwm_dev_num> <channel> <polarity> */ /* cros-ec-pwm doesn't support invert */ ut_asserteq(1, run_command("pwm invert 0 0 1", 0)); @@ -49,8 +47,6 @@ static int dm_test_pwm_cmd(struct unit_test_state *uts) ut_assertok(uclass_get_device(UCLASS_PWM, 1, &dev)); ut_assertnonnull(dev); - ut_assertok(console_record_reset_enable()); - /* pwm <invert> <pwm_dev_num> <channel> <polarity> */ ut_assertok(run_command("pwm invert 1 0 1", 0)); ut_assert_console_end(); |