build: ensure silent Make behavior for json scripts
authorMichael Pratt <mcpratt@pm.me>
Fri, 24 Nov 2023 10:10:12 +0000 (05:10 -0500)
committerRISCi_ATOM <bob@bobcall.me>
Wed, 18 Dec 2024 16:11:00 +0000 (11:11 -0500)
commit078309241cdc2b70b8bf09e6745789d6c41b671a
tree51f24a0d26ff9790e651f5485982a323a92b3986
parentff7e60720e4ee8bb1b566877df9f7656b0747c93
build: ensure silent Make behavior for json scripts

Run the invocation of Make with verbosity in order to
prevent the printing of Makefile level and subtarget status.
e.g.  make[3] -C target/linux val.DEFAULT_PACKAGES val.ARCH_PACKAGES

Remove piping of stderr, which is only useful when using
the "communicate" method over the "run" method,
and this script would not be written to handle a captured error anyway.

For error testing, stdout and stderr can be set to a file object
with the open() function like this:

out = open('json_out', 'w')
err = open('json_err', 'w')

...
...
stdout=out,
stderr=err,

Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit fd3376c5eeccc1f1753483ed31ffff03808ce31d)
scripts/json_overview_image_info.py