From 024a13ac0d2e25dec620003e2538acb4598598fd Mon Sep 17 00:00:00 2001 From: Andrej Kozemcak Date: Fri, 31 May 2019 08:52:45 +0200 Subject: [TEST] - Init log - init log - clean output Change-Id: Ia4f722eb5c989df8d2f5f14f602ed30657db9975 Signed-off-by: Andrej Kozemcak --- test/vpp_controler.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/vpp_controler.py') diff --git a/test/vpp_controler.py b/test/vpp_controler.py index b29f00e..816ed4c 100644 --- a/test/vpp_controler.py +++ b/test/vpp_controler.py @@ -39,8 +39,12 @@ class Vpp_controler: if self.process is None: return - subprocess.run(self.ccmd + " create host name vpp1", shell=True) - subprocess.run(self.ccmd + " create host name vpp2", shell=True) + subprocess.run(self.ccmd + " create host name vpp1", shell=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + subprocess.run(self.ccmd + " create host name vpp2", shell=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) def spawn(self): self.process = subprocess.Popen([self.cmd, "-c", self.configuration], -- cgit 1.2.3-korg