diff options
author | David Sommerseth <davids@redhat.com> | 2009-12-15 11:32:01 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-12-15 11:32:01 +0100 |
commit | 086c7c441d109f608172341e1cc14f04e57df50d (patch) | |
tree | e24aa690d35f8baa40a73eba0a3743c3320015d5 | |
parent | 616b584fce9116d34ce7aa3fe0b41ea0033581dc (diff) | |
download | python-dmidecode-086c7c441d109f608172341e1cc14f04e57df50d.tar.gz python-dmidecode-086c7c441d109f608172341e1cc14f04e57df50d.tar.xz python-dmidecode-086c7c441d109f608172341e1cc14f04e57df50d.zip |
Removed yet another dmidecode.dump() test when running as non-root
-rwxr-xr-x | unit-tests/unit | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unit-tests/unit b/unit-tests/unit index d2b94bb..fcd11fa 100755 --- a/unit-tests/unit +++ b/unit-tests/unit @@ -178,8 +178,9 @@ try: vwrite(" * Testing that default device is /dev/mem...", 1) test(dmidecode.get_dev() == "/dev/mem") - vwrite(" * Testing that write-lock will not break on dump()...", 1) - test(not dmidecode.dump()) + if root_user: + vwrite(" * Testing that write-lock will not break on dump()...", 1) + test(not dmidecode.dump()) vwrite(" * Testing ability to change device to %s..."%DUMP, 1) test(dmidecode.set_dev(DUMP)) @@ -199,7 +200,7 @@ try: if dmidecode.dmi is None: vwrite( " * %s\n" % yellow( - "Skipped testing API function, hardware does not have DMI data" + "Skipped testing dump() function, hardware does not have DMI data" ), 1) else: vwrite( |