update scripts/hdc_normal_test.py.

Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
liupeng298 2024-10-15 02:57:10 +00:00 committed by Gitee
parent c745425e56
commit 9581c4489f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -353,13 +353,15 @@ def test_hdcd_rom():
def test_smode_r():
assert check_hdc_cmd(f'smode -r')
run_command_with_timeout("hdc wait", 8)
run_command_with_timeout("hdc wait", 5)
time.sleep(1)
assert check_shell(f"shell id", "context=u:r:sh:s0")
def test_smode():
assert check_hdc_cmd(f'smode')
run_command_with_timeout("hdc wait", 8)
run_command_with_timeout("hdc wait", 5)
time.sleep(1)
assert check_shell(f"shell id", "context=u:r:su:s0")
assert not check_hdc_cmd("ls /data/log/faultlog/faultlogger | grep hdcd", "hdcd")