mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-27 01:00:45 +00:00
commit
1d82e6339c
@ -50,6 +50,14 @@ def test_list_targets():
|
|||||||
assert check_hdc_cmd("shell mkdir data/local/tmp/it_send_dir")
|
assert check_hdc_cmd("shell mkdir data/local/tmp/it_send_dir")
|
||||||
|
|
||||||
|
|
||||||
|
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()
|
||||||
|
|
||||||
|
|
||||||
def test_list_targets_multi_usb_device():
|
def test_list_targets_multi_usb_device():
|
||||||
devices_str = check_shell_any_device(f"{GP.hdc_exe} list targets", None, True)
|
devices_str = check_shell_any_device(f"{GP.hdc_exe} list targets", None, True)
|
||||||
time.sleep(3) # sleep 3s to wait for the device to connect channel
|
time.sleep(3) # sleep 3s to wait for the device to connect channel
|
||||||
|
Loading…
Reference in New Issue
Block a user