diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-22 16:09:41 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-12-09 06:54:15 -0800 |
commit | d349ce27008538ee04d46cab72ba8a5cf5f1c049 (patch) | |
tree | 90b7068b6c6a8b5f7b7c537fb86774e6a921e32d /scripts | |
parent | 29e16888a525043328f2d77ce90c5654dcd9a91d (diff) | |
download | poky-d349ce27008538ee04d46cab72ba8a5cf5f1c049.tar.gz |
resulttool: Fix passthrough of --all files in store mode
When using store mode, --all was broken as not all files were being preserved.
Fix this by limiting the scope of the git rm command.
(From OE-Core rev: 461140bede110b561f0bae46255d6a9435329e97)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9604561d2022b6c76b1cb4186d40800d1affdd2b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/resulttool/store.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/store.py b/scripts/lib/resulttool/store.py index 430213bbfe..903e29627a 100644 --- a/scripts/lib/resulttool/store.py +++ b/scripts/lib/resulttool/store.py | |||
@@ -69,7 +69,7 @@ def store(args, logger): | |||
69 | logger.info('skipping %s as non-matching' % r[0]) | 69 | logger.info('skipping %s as non-matching' % r[0]) |
70 | continue | 70 | continue |
71 | keywords = {'commit': r[0], 'branch': r[1], "commit_count": r[2]} | 71 | keywords = {'commit': r[0], 'branch': r[1], "commit_count": r[2]} |
72 | subprocess.check_call(["find", tempdir, "!", "-path", "./.git/*", "-delete"]) | 72 | subprocess.check_call(["find", tempdir, "-name", "testresults.json", "!", "-path", "./.git/*", "-delete"]) |
73 | resultutils.save_resultsdata(results, tempdir, ptestlogs=True) | 73 | resultutils.save_resultsdata(results, tempdir, ptestlogs=True) |
74 | 74 | ||
75 | logger.info('Storing test result into git repository %s' % args.git_dir) | 75 | logger.info('Storing test result into git repository %s' % args.git_dir) |