diff options
author | Clark Williams <williams@redhat.com> | 2015-08-26 15:36:48 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2015-08-26 15:36:48 -0500 |
commit | e06cd1e92603c4d27569e4e150aede5ad0c63bc6 (patch) | |
tree | b39212c1be78a7e62248274bab48e4dc3d4407cc | |
parent | 47c66a3f632466e6100b34328d24701a30b8746e (diff) | |
download | rteval-e06cd1e92603c4d27569e4e150aede5ad0c63bc6.tar.gz |
cputopology: fix unit test function
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | rteval/sysinfo/cputopology.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rteval/sysinfo/cputopology.py b/rteval/sysinfo/cputopology.py index 0059450..73ea325 100644 --- a/rteval/sysinfo/cputopology.py +++ b/rteval/sysinfo/cputopology.py @@ -115,7 +115,7 @@ class CPUtopology: def unit_test(rootdir): try: cputop = CPUtopology() - n = cputop.parse() + n = cputop._parse() print " ---- XML Result ---- " x = libxml2.newDoc('1.0') @@ -123,9 +123,9 @@ def unit_test(rootdir): x.saveFormatFileEnc('-','UTF-8',1) print " ---- getCPUcores() / getCPUscokets() ---- " - print "CPU cores: %i (online: %i) - CPU sockets: %i" % (cputop.getCPUcores(False), - cputop.getCPUcores(True), - cputop.getCPUsockets()) + print "CPU cores: %i (online: %i) - CPU sockets: %i" % (cputop.cpu_getCores(False), + cputop.cpu_getCores(True), + cputop.cpu_getSockets()) return 0 except Exception, e: # import traceback |