summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-21 16:54:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-22 07:45:17 +0100
commit0eec01dee1b12fab24478a05c04174d5eb33eb6f (patch)
tree6f3d058f0d301d69ed1018db8ed92b48e816ddf8 /meta/lib/oeqa/selftest
parent00ae1a5ab92238e6fbdb2acb0b89464294b3c2a7 (diff)
downloadpoky-0eec01dee1b12fab24478a05c04174d5eb33eb6f.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: dbdb6e73b0f52bc5f9429aca47802d51edbbc834) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-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 7dab5614a9..16486e7eb9 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -437,7 +437,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
437 output_link = os.path.join(os.path.dirname(args.output_log), 437 output_link = os.path.join(os.path.dirname(args.output_log),
438 "%s-results.log" % self.name) 438 "%s-results.log" % self.name)
439 if os.path.lexists(output_link): 439 if os.path.lexists(output_link):
440 os.remove(output_link) 440 os.unlink(output_link)
441 os.symlink(args.output_log, output_link) 441 os.symlink(args.output_log, output_link)
442 442
443 return rc 443 return rc