mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 13:23:12 +03:00
fixed test for appveyor
This commit is contained in:
parent
4259f78eda
commit
30b441aa34
@ -256,7 +256,12 @@ class TestGlances(unittest.TestCase):
|
||||
|
||||
def test_016_hddsmart(self):
|
||||
"""Check hard disk SMART data plugin."""
|
||||
from glances.plugins.glances_smart import is_admin
|
||||
try:
|
||||
from glances.plugins.glances_smart import is_admin
|
||||
except ImportError:
|
||||
print("INFO: [TEST_016] pySMART not found, not running SMART plugin test")
|
||||
return
|
||||
|
||||
stat = 'DeviceName'
|
||||
print('INFO: [TEST_016] Check SMART stats: {}'.format(stat))
|
||||
stats_grab = stats.get_plugin('smart').get_raw()
|
||||
|
Loading…
Reference in New Issue
Block a user