From: Thierry Parmentelat Date: Thu, 7 Feb 2008 15:44:51 +0000 (+0000) Subject: correct a glitch, we need to check the right private key file and not the directory... X-Git-Tag: 2008-02-11-last-vmware-support~15 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e7182251328e66be674528e718f73b2b7a72422a;p=tests.git correct a glitch, we need to check the right private key file and not the directory itself --- diff --git a/system/TestSlice.py b/system/TestSlice.py index f4eb9c5..27a0ccc 100644 --- a/system/TestSlice.py +++ b/system/TestSlice.py @@ -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)