From: Richard Purdie Date: Fri, 22 Nov 2024 16:09:41 +0000 (+0000) Subject: resulttool: Fix passthrough of --all files in store mode X-Git-Tag: yocto-5.2~1237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9604561d2022b6c76b1cb4186d40800d1affdd2b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/resulttool/store.py b/scripts/lib/resulttool/store.py index 430213bbfe9..903e29627ab 100644 --- a/scripts/lib/resulttool/store.py +++ b/scripts/lib/resulttool/store.py @@ -69,7 +69,7 @@ def store(args, logger): logger.info('skipping %s as non-matching' % r[0]) continue keywords = {'commit': r[0], 'branch': r[1], "commit_count": r[2]} - subprocess.check_call(["find", tempdir, "!", "-path", "./.git/*", "-delete"]) + subprocess.check_call(["find", tempdir, "-name", "testresults.json", "!", "-path", "./.git/*", "-delete"]) resultutils.save_resultsdata(results, tempdir, ptestlogs=True) logger.info('Storing test result into git repository %s' % args.git_dir)