return self.key_spec['name']
def publicpath(self):
- return "/root/%s/keys/%s.pub"%(self.test_plc.path,self.name())
+ return "keys/%s.pub"%(self.name())
def privatepath(self):
- return "/root/%s/keys/%s.rsa"%(self.test_plc.path,self.name())
+ return "keys/%s.rsa"%(self.name())
def store_key(self):
pub=self.publicpath()
#self.options.steps=['dump','clean','install','populate']
self.options.steps=TestMain.default_steps
- # store self.path in options.path for the various callbacks
- self.options.path = self.path
# this is useful when propagating on host boxes, to avoid conflicts
self.options.buildname = os.path.basename (os.path.abspath (self.path))
# with the last two steps (i386/myplc...) removed
repo_url = options.myplc_url
repo_url = os.path.dirname(repo_url)
- repo_url = os.path.dirname(repo_url)
create_vserver="%s/vtest-init-vserver.sh %s %s -- --interface eth0:%s"%\
(build_dir,self.vservername,repo_url,self.vserverip)
if self.run_in_host(create_vserver) != 0:
###
def configure(self,options):
- tmpname='/root/%s/%s.plc-config-tty'%(options.path,self.name())
+ tmpname='%s.plc-config-tty'%(self.name())
fileconf=open(tmpname,'w')
for var in [ 'PLC_NAME',
'PLC_ROOT_PASSWORD',
def do_check_tcp(self,tcp_param,options):
for tcp_spec in tcp_param:
#copy the tcptest file under the chroot
- path=options.path
- localfile="/root/"+path+"/tcptest.py"
- remotefile="tcptest.py"
+ localfile=remotefile="tcptest.py"
self.test_plc.copy_in_guest(localfile, remotefile, False)
peer_param=tcp_spec['tcp_fields']
if (tcp_spec['tcp_fields']['peer_name']=='server'):