[libvirt PATCH 3/3] cpu-data.py: Automatically adjust command line for kcpuid

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

 



kcpuid does not have a "-1" flag.

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 tests/cputestdata/cpu-data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cputestdata/cpu-data.py b/tests/cputestdata/cpu-data.py
index 4305aacf35..d8a89ebc2a 100755
--- a/tests/cputestdata/cpu-data.py
+++ b/tests/cputestdata/cpu-data.py
@@ -116,7 +116,7 @@ def gather_cpuid_leaves(args):
     cpuid = args.path_to_cpuid or "cpuid"
     try:
         output = subprocess.check_output(
-            [cpuid, "-1r"],
+            [cpuid, "-r" if "kcpuid" in cpuid else "-1r"],
             universal_newlines=True)
     except FileNotFoundError as e:
         exit("Error: '{}' not found.\n'cpuid' can be usually found in a "
-- 
2.26.3




[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