summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rwxr-xr-xmeta/lib/oeqa/runexported.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py
index 4213cab7bc..0daedd057e 100755
--- a/meta/lib/oeqa/runexported.py
+++ b/meta/lib/oeqa/runexported.py
@@ -49,8 +49,8 @@ class FakeTarget(object):
49 def exportStart(self): 49 def exportStart(self):
50 self.sshlog = os.path.join(self.testdir, "ssh_target_log.%s" % self.datetime) 50 self.sshlog = os.path.join(self.testdir, "ssh_target_log.%s" % self.datetime)
51 sshloglink = os.path.join(self.testdir, "ssh_target_log") 51 sshloglink = os.path.join(self.testdir, "ssh_target_log")
52 if os.path.islink(sshloglink): 52 if os.path.exists(sshloglink):
53 os.unlink(sshloglink) 53 os.remove(sshloglink)
54 os.symlink(self.sshlog, sshloglink) 54 os.symlink(self.sshlog, sshloglink)
55 print("SSH log file: %s" % self.sshlog) 55 print("SSH log file: %s" % self.sshlog)
56 self.connection = SSHControl(self.ip, logfile=self.sshlog) 56 self.connection = SSHControl(self.ip, logfile=self.sshlog)