mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
support/testing: test_dropbear.py: drop ssh port forward to the host
It is not used and may conflict with other services running on port 2222 on the host machine. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
cc84a0dac6
commit
092b2b5ada
@ -21,7 +21,7 @@ class TestDropbear(infra.basetest.BRTest):
|
|||||||
kernel="builtin",
|
kernel="builtin",
|
||||||
options=["-initrd", img,
|
options=["-initrd", img,
|
||||||
"-net", "nic",
|
"-net", "nic",
|
||||||
"-net", "user,hostfwd=tcp::2222-:22"])
|
"-net", "user"])
|
||||||
self.emulator.login(self.passwd)
|
self.emulator.login(self.passwd)
|
||||||
cmd = "netstat -ltn 2>/dev/null | grep 0.0.0.0:22"
|
cmd = "netstat -ltn 2>/dev/null | grep 0.0.0.0:22"
|
||||||
_, exit_code = self.emulator.run(cmd)
|
_, exit_code = self.emulator.run(cmd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user