aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_controler.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_controler.py')
-rw-r--r--test/vpp_controler.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/vpp_controler.py b/test/vpp_controler.py
index 561f5a0..e764e9b 100644
--- a/test/vpp_controler.py
+++ b/test/vpp_controler.py
@@ -19,11 +19,14 @@ import time
import psutil
class Vpp_controler:
- def __init__(self):
+ debug = False
+
+ def __init__(self, debug=False):
self.cmd = "vpp"
self.ccmd = "vppctl"
self.configuration = "/root/src/sweetcomb/test/conf/vpp.conf"
self.process = None
+ self.debug = debug
def __del__(self):
#self.kill()
@@ -50,6 +53,8 @@ class Vpp_controler:
self.process = None
def terminate(self):
+ if self.debug:
+ return
if self.process is None:
return