From 086c7c441d109f608172341e1cc14f04e57df50d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 15 Dec 2009 11:32:01 +0100 Subject: Removed yet another dmidecode.dump() test when running as non-root --- unit-tests/unit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'unit-tests') 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( -- cgit