Re: [PATCH 11/23] cputest: Avoid calling json_reformat in cpu-parse.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/04/2017 10:58 AM, Jiri Denemark wrote:
> Various version of json_reformat use different number of spaces for
> indenting. Let's use a simple python reformatter to gain full control
> over the formatting for consistent results.
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  tests/cputestdata/cpu-parse.sh    | 2 +-
>  tests/cputestdata/cpu-reformat.py | 9 +++++++++
>  2 files changed, 10 insertions(+), 1 deletion(-)
>  create mode 100755 tests/cputestdata/cpu-reformat.py
> 

Looks reasonable - python, formatting, and scripting - not exactly in my
wheel house. Still doesn't 'tr -s '\n' just replace multiple occurrences
of \n with just one?  I suppose that's being done along with some amount
of space adding.

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux