temp fix for getting right path when the testframe is remotely invoked
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 5 Mar 2008 15:41:10 +0000 (15:41 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 5 Mar 2008 15:41:10 +0000 (15:41 +0000)
system/TestKey.py
system/TestSliver.py

index 8284609..28032f2 100644 (file)
@@ -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()
index 527a519..5be0a25 100644 (file)
@@ -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']