From: Thierry Parmentelat Date: Wed, 5 Mar 2008 15:41:10 +0000 (+0000) Subject: temp fix for getting right path when the testframe is remotely invoked X-Git-Tag: tests-4.2-4~210 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5963f43cd175d7882d2bd69e4971b34f927662a3;p=tests.git temp fix for getting right path when the testframe is remotely invoked --- diff --git a/system/TestKey.py b/system/TestKey.py index 8284609..28032f2 100644 --- a/system/TestKey.py +++ b/system/TestKey.py @@ -11,9 +11,9 @@ class TestKey: return self.key_spec['name'] def publicpath(self): - return "%s/keys/%s.pub"%(self.test_plc.path,self.name()) + return "/root/%s/keys/%s.pub"%(self.test_plc.path,self.name()) def privatepath(self): - return "%s/keys/%s.rsa"%(self.test_plc.path,self.name()) + return "/root/%s/keys/%s.rsa"%(self.test_plc.path,self.name()) def store_key(self): pub=self.publicpath() diff --git a/system/TestSliver.py b/system/TestSliver.py index 527a519..5be0a25 100644 --- a/system/TestSliver.py +++ b/system/TestSliver.py @@ -50,7 +50,7 @@ class TestSliver: for tcp_spec in tcp_param: #copy the tcptest file under the chroot path=options.path - localfile=path+"/tcptest.py" + localfile="/root/"+path+"/tcptest.py" remotefile="tcptest.py" self.test_plc.copy_in_guest(localfile, remotefile, False) peer_param=tcp_spec['tcp_fields']