summaryrefslogtreecommitdiffstats
path: root/unit-tests
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests')
-rwxr-xr-xunit-tests/unit7
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(