correct a glitch, we need to check the right private key file and not the directory...
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 7 Feb 2008 15:44:51 +0000 (15:44 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 7 Feb 2008 15:44:51 +0000 (15:44 +0000)
system/TestSlice.py

index f4eb9c5..27a0ccc 100644 (file)
@@ -73,7 +73,7 @@ class TestSlice:
                     found=True
         #create dir in plc root image
         remote_privatekey="/root/keys/%s.rsa"%keyname
-        if not os.path.isdir("/plc/root/data/root/keys"):
+        if not os.path.isfile(remote_privatekey):
             self.test_plc.run_in_guest("mkdir  /root/keys" )
             self.test_plc.copy_in_guest(privatekey,remote_privatekey,True)