diff options
author | Lucian Musat <george.l.musat@intel.com> | 2015-09-28 17:25:56 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 07:43:34 +0100 |
commit | 1222eb18aaecfba95c7b42f013d9c5e2924fcecc (patch) | |
tree | cef1042a7048a8ce8fe00430bc786c10344d9ac6 /meta | |
parent | cb936708402a559cf67217970ce5d3b5049e3ef0 (diff) | |
download | poky-1222eb18aaecfba95c7b42f013d9c5e2924fcecc.tar.gz |
oeqa/runexported: Fix a problem with ssh_target_log existing in folder.
When copying the exported tests to a remote machine ssh_target_log can
be transformed from softlink to file which will throw an error when
trying to run again.
(From OE-Core rev: 2bc7732c27e192821b9ebb76e1dfba739cf5b088)
Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/lib/oeqa/runexported.py | 4 |
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) |