diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-21 16:54:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-22 07:43:51 +0100 |
commit | dbdb6e73b0f52bc5f9429aca47802d51edbbc834 (patch) | |
tree | 686ebb2f5ee60ce929ded6c2f72796b37e5b8cc3 | |
parent | a8781a8f02c924d8a19e727e5d1bc6b89bf976da (diff) | |
download | openembedded-core-dbdb6e73b0f52bc5f9429aca47802d51edbbc834.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>
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 2 |
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): 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 |