summaryrefslogtreecommitdiffstats
path: root/scripts/lib/resulttool/resultutils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 11:46:08 +0000
committerSteve Sakoman <steve@sakoman.com>2024-12-09 06:25:53 -0800
commit4dec1742392d0e757d5d66eee04aa49144e83b90 (patch)
tree6a7131ef529edae2030367e1a84d75e40e7927a8 /scripts/lib/resulttool/resultutils.py
parent417c3eb0655076fc2212a250f0285866b48a4391 (diff)
downloadpoky-4dec1742392d0e757d5d66eee04aa49144e83b90.tar.gz
resulttool: Use single space indentation in json output
Using 4 space indentation in resulted in hundreds of megabytes of extra file size in general use. Reduce this to make filesizes more managable and reduce the processing cost. Some level of indentation and spacing does make the files more readable and allows use of git diff so we need to retain some of it. (From OE-Core rev: b8be3ac506bb39665390c770f72de2ca359670b1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a274cdcaf852cca9497f0358f44dda99c06aacbe) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/resulttool/resultutils.py')
-rw-r--r--scripts/lib/resulttool/resultutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py
index c5521d81bd..8fd4e0a9cf 100644
--- a/scripts/lib/resulttool/resultutils.py
+++ b/scripts/lib/resulttool/resultutils.py
@@ -169,7 +169,7 @@ def save_resultsdata(results, destdir, fn="testresults.json", ptestjson=False, p
169 if not ptestjson: 169 if not ptestjson:
170 resultsout = strip_ptestresults(results[res]) 170 resultsout = strip_ptestresults(results[res])
171 with open(dst, 'w') as f: 171 with open(dst, 'w') as f:
172 f.write(json.dumps(resultsout, sort_keys=True, indent=4)) 172 f.write(json.dumps(resultsout, sort_keys=True, indent=1))
173 for res2 in results[res]: 173 for res2 in results[res]:
174 if ptestlogs and 'result' in results[res][res2]: 174 if ptestlogs and 'result' in results[res][res2]:
175 seriesresults = results[res][res2]['result'] 175 seriesresults = results[res][res2]['result']