[Buildroot] [PATCH 4/6] autobuild-run: make diffoscope output to a JSON-formatted file

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 6 19:40:14 UTC 2019


Hello Atharva,

On Tue,  6 Aug 2019 23:42:49 +0530
Atharva Lele <itsatharva at gmail.com> wrote:

> Normal diffoscope output is readable by humans but not really
> convenient when working with it in code. JSON can be easily
> read and extracted information from.
> 
> Signed-off-by: Atharva Lele <itsatharva at gmail.com>

Peter and I had a look at the diffoscope output, and while the JSON
version is definitely good for human parsing, having the text version
in addition for humans to read would also be nice.

Could you instead store both the JSON and text versions ?

Just run this:

$ diffoscope --text differences.txt --json differences.json rootfs.tar rootfs.tar.before

And you'll get both the JSON and text version in files.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list