update scripts/hdc_normal_test.py.

Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
liupeng298 2024-11-21 06:00:55 +00:00 committed by Gitee
parent 4ae601a363
commit f79730b8d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -51,11 +51,11 @@ def test_list_targets():
def test_usb_disconnect():
assert check_hdc_targets()
cmd = 'shell "kill -9 `pidof hdcd`"'
check_hdc_cmd(f"{cmd}", "[Fail][E001003] USB communication abnormal, please check the USB communication link.")
time.sleep(2)
assert check_hdc_targets()
assert check_hdc_targets()
cmd = 'shell "kill -9 `pidof hdcd`"'
check_hdc_cmd(f"{cmd}", "[Fail][E001003] USB communication abnormal, please check the USB communication link.")
time.sleep(2)
assert check_hdc_targets()
def test_list_targets_multi_usb_device():