summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-21 16:54:54 +0100
committerSteve Sakoman <steve@sakoman.com>2023-10-25 04:51:01 -1000
commit1cb8768b28e9af8f44e57160e60665eb8670e32c (patch)
treed30e00e98597546ac5b26bb5592b7aa1446f042d
parent592a3ed0ebc2bbe7d6a83b6cf69c1958d40f6132 (diff)
downloadpoky-1cb8768b28e9af8f44e57160e60665eb8670e32c.tar.gz
oeqa/selftest: Fix broken symlink removal handling
The test above this removal correctly looks at symlinks however to remove a symlink we should call unlink(), not remove(). This avoids some build failures/tracebacks. (From OE-Core rev: 830412641abe8c7a3ad5eb1709c8372c796a7760) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dbdb6e73b0f52bc5f9429aca47802d51edbbc834) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/selftest/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index 39325f4b72..3fb357f8eb 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -427,7 +427,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
427 output_link = os.path.join(os.path.dirname(args.output_log), 427 output_link = os.path.join(os.path.dirname(args.output_log),
428 "%s-results.log" % self.name) 428 "%s-results.log" % self.name)
429 if os.path.lexists(output_link): 429 if os.path.lexists(output_link):
430 os.remove(output_link) 430 os.unlink(output_link)
431 os.symlink(args.output_log, output_link) 431 os.symlink(args.output_log, output_link)
432 432
433 return rc 433 return rc