From 5963f43cd175d7882d2bd69e4971b34f927662a3 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Mar 2008 15:41:10 +0000 Subject: [PATCH] temp fix for getting right path when the testframe is remotely invoked --- system/TestKey.py | 4 ++-- system/TestSliver.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'] -- 2.43.0