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-19 04:34:38 -1000
commit830412641abe8c7a3ad5eb1709c8372c796a7760 (patch)
tree1053c60ca1b0bdb28999d64b6a399da80a4a7334
parent76efaa1e177a5051cfec87f288c8c7372f142fe2 (diff)
downloadopenembedded-core-contrib-830412641abe8c7a3ad5eb1709c8372c796a7760.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. 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):
output_link = os.path.join(os.path.dirname(args.output_log),
"%s-results.log" % self.name)
if os.path.lexists(output_link):
- os.remove(output_link)
+ os.unlink(output_link)
os.symlink(args.output_log, output_link)
return rc