Skip to content

Commit 5ba548c

Browse files
authored
[dvs] Re-add runcmd_async command (#1508)
Signed-off-by: Danny Allen <[email protected]>
1 parent 86e1171 commit 5ba548c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ def runcmd(self, cmd: str) -> int:
199199

200200
return 0
201201

202+
# used in buildimage tests, do not delete
203+
def runcmd_async(self, cmd: str) -> subprocess.Popen:
204+
return subprocess.Popen(f"ip netns exec {self.nsname} {cmd}", shell=True)
205+
202206
def runcmd_output(self, cmd: str) -> str:
203207
return subprocess.check_output(f"ip netns exec {self.nsname} {cmd}", shell=True).decode("utf-8")
204208

0 commit comments

Comments
 (0)