[libvirt PATCH 02/29] cpu-gather: Create python wrapper for shell script

Michal Prívozník mprivozn at redhat.com
Fri Dec 18 18:08:51 UTC 2020


On 12/15/20 5:24 PM, Tim Wiederhake wrote:
> This changes the invocation from
>    ./cpu-gather.sh | ./cpu-parse.sh
> to
>    ./cpu-gather.py | ./cpu-parse.sh
> 
> Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
> ---
>   tests/cputestdata/cpu-gather.py | 13 +++++++++++++
>   tests/cputestdata/cpu-gather.sh |  5 +++++
>   2 files changed, 18 insertions(+)
>   create mode 100755 tests/cputestdata/cpu-gather.py


I think cpu-parse.sh which shows the example of invocation too should be 
updated as well:

diff --git i/tests/cputestdata/cpu-parse.sh w/tests/cputestdata/cpu-parse.sh
index 7501c57cba..2981e9193c 100755
--- i/tests/cputestdata/cpu-parse.sh
+++ w/tests/cputestdata/cpu-parse.sh
@@ -1,7 +1,7 @@
  #!/bin/bash

  # Usage:
-# ./cpu-gather.sh | ./cpu-parse.sh
+# ./cpu-gather.py | ./cpu-parse.sh

  data=`cat`


Michal




More information about the libvir-list mailing list