aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2015-10-15 06:34:55 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-10-15 06:34:55 +0000
commit38914bc984bd59058f2508f663b3124256d2ba19 (patch)
tree2097ab4d92eac0cdb9fffb8975a5ade0eea7d983 /testcases/Controllers/ONOS
parent47595881eba7292de87ec5d7aeb4b123ba6eb0f1 (diff)
parent5df20b07bb860f2dc5f245b7cadaead573806bff (diff)
Merge "Write a simple adapter in functest project to run TESTON"
Diffstat (limited to 'testcases/Controllers/ONOS')
-rw-r--r--testcases/Controllers/ONOS/Teston/CI/adapters/environment.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/testcases/Controllers/ONOS/Teston/CI/adapters/environment.py b/testcases/Controllers/ONOS/Teston/CI/adapters/environment.py
index 01e72cd4..ea1a836d 100644
--- a/testcases/Controllers/ONOS/Teston/CI/adapters/environment.py
+++ b/testcases/Controllers/ONOS/Teston/CI/adapters/environment.py
@@ -22,6 +22,7 @@ class environment( connection ):
connection.__init__( self )
self.loginfo = connection( )
self.masterhandle = ''
+ self.home = ''
def DownLoadCode( self, handle, codeurl ):
"""
@@ -202,6 +203,12 @@ class environment( connection ):
#Release ssh
handle.logout()
+ def CopyOnostoTestbin( self ):
+ sourcefile = os.curdir + '/dependencies/onos'
+ destifile = self.home + '/onos/tools/test/bin/'
+ runcommand = 'cp ' + sourcefile + ' ' + destifile
+ os.system( runcommand )
+
def OnosEnvSetup( self, handle ):
"""
Onos Environment Setup function
@@ -213,6 +220,7 @@ class environment( connection ):
self.AddKnownHost( handle, self.OC3, "karaf", "karaf" )
self.DownLoadCode( handle, 'https://github.com/sunyulin/OnosSystemTest.git' )
self.DownLoadCode( handle, 'https://gerrit.onosproject.org/onos' )
+ self.CopyOnostoTestbin()
self.ChangeOnosName(self.agentusername,self.agentpassword)
self.InstallDefaultSoftware( handle )
- self.SetOnosEnvVar(handle, self.masterpassword,self.agentpassword) \ No newline at end of file
+ self.SetOnosEnvVar(handle, self.masterpassword,self.agentpassword)