change prompt according to different user name
Change-Id: I41830b03d7be742df5914ef461fbd604e21c7bec
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 014154c..78c4531 100755
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -58,7 +58,6 @@
self.handle = None
self.karafUser = None
self.karafPass = None
- self.karafPrompt = "sdn@root >" # FIXME: make configurable
self.graph = Graph()
super( OnosCliDriver, self ).__init__()
@@ -74,6 +73,7 @@
try:
for key in connectargs:
vars( self )[ key ] = connectargs[ key ]
+ self.karafPrompt = self.user_name + "@root >"
self.home = "~/onos"
for key in self.options:
if key == "home":
@@ -82,7 +82,6 @@
self.karafUser = self.options[ key ]
elif key == "karaf_password":
self.karafPass = self.options[ key ]
-
self.home = self.checkOptions( self.home, "~/onos" )
self.karafUser = self.checkOptions( self.karafUser, self.user_name )
self.karafPass = self.checkOptions( self.karafPass, self.pwd )