mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 07:02:43 +00:00
!1140 新增fport rm 重复设置用例
Merge pull request !1140 from liupeng298/master
This commit is contained in:
commit
d74ed75bdc
@ -185,6 +185,18 @@ def test_fport_cmd():
|
||||
assert check_hdc_cmd(f"rport rm {rport}", "success")
|
||||
assert not check_hdc_cmd("rport ls", fport) and not check_hdc_cmd("fport ls", fport)
|
||||
|
||||
task_str1 = "tcp:33333 tcp:33333"
|
||||
assert check_hdc_cmd(f"fport {task_str1}", "Forwardport result:OK")
|
||||
assert check_hdc_cmd(f"fport rm {task_str1}", "success")
|
||||
assert check_hdc_cmd(f"fport {task_str1}", "Forwardport result:OK")
|
||||
assert check_hdc_cmd(f"fport rm {task_str1}", "success")
|
||||
|
||||
task_str2 = "tcp:44444 tcp:44444"
|
||||
assert check_hdc_cmd(f"rport {task_str2}", "Forwardport result:OK")
|
||||
assert check_hdc_cmd(f"rport rm {task_str2}", "success")
|
||||
assert check_hdc_cmd(f"rport {task_str2}", "Forwardport result:OK")
|
||||
assert check_hdc_cmd(f"rport rm {task_str2}", "success")
|
||||
|
||||
|
||||
def test_shell_cmd_timecost():
|
||||
assert check_cmd_time(
|
||||
|
Loading…
Reference in New Issue
Block a user