mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-27 01:00:45 +00:00
update scripts/hdc_normal_test.py.
Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
parent
c745425e56
commit
9581c4489f
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user