diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-20 01:44:55 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-20 01:44:55 +0000 |
commit | 8626bbd2cfcb10109cfa85b8d7ef99898e6f7771 (patch) | |
tree | f50b216d694e92505b051a4d2af635bcd3da913b /test.py | |
parent | f5397d936f5dc85813d1d6d50cf5f7d6ba9716c8 (diff) | |
download | python-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.tar.gz python-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.tar.xz python-dmidecode-8626bbd2cfcb10109cfa85b8d7ef99898e6f7771.zip |
Removed "detected" from appearing in every single function call. TODO: An ivar
should be implemented to return this string, so further cleanup is still
required; as it stands, there is no access to this information anymore!
Updated test case.
Further general cleanup.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@133 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -50,22 +50,16 @@ for dev in devices: sys.stdout.write("...\n") for i in types: sys.stdout.write(" * Testing type %i..."%i); sys.stdout.flush() - output = len(dmidecode.type(i)) + output = dmidecode.type(i).keys() total += 1 - if output: - sys.stdout.write("Done\n") - success += 1 - else: - sys.stdout.write("FAILED\n") + sys.stdout.write("Done (%s)\n"%output) + success += 1 for section in sections: total += 1 sys.stdout.write(" * Testing %s..."%section); sys.stdout.flush() - output = getattr(dmidecode, section) - if output: - sys.stdout.write("Done\n") - success += 1 - else: - sys.stdout.write("FAILED\n") + output = getattr(dmidecode, section)().keys() + sys.stdout.write("Done (%s)\n"%output) + success += 1 else: sys.stdout.write("FAILED\n") |