mirror of
https://github.com/nicolargo/glances.git
synced 2026-05-19 12:10:02 -04:00
Merge branch 'develop' of github.com:nicolargo/glances into develop
This commit is contained in:
@@ -210,7 +210,7 @@ class DockerStatsFetcher:
|
||||
class DockerExtension:
|
||||
"""Glances' Containers Plugin's Docker Extension unit"""
|
||||
|
||||
CONTAINER_ACTIVE_STATUS = ['running', 'paused']
|
||||
CONTAINER_ACTIVE_STATUS = ['running', 'healthy', 'paused']
|
||||
|
||||
def __init__(self):
|
||||
self.disable = disable_plugin_docker
|
||||
|
||||
@@ -253,7 +253,7 @@ class PodmanPodStatsFetcher:
|
||||
class PodmanExtension:
|
||||
"""Glances' Containers Plugin's Docker Extension unit"""
|
||||
|
||||
CONTAINER_ACTIVE_STATUS = ['running', 'paused']
|
||||
CONTAINER_ACTIVE_STATUS = ['running', 'healthy', 'paused']
|
||||
|
||||
def __init__(self, podman_sock):
|
||||
self.disable = disable_plugin_podman
|
||||
|
||||
@@ -638,6 +638,10 @@ class TestGlances(unittest.TestCase):
|
||||
def test_025_npu(self):
|
||||
"""Check NPU plugin."""
|
||||
print('INFO: [TEST_025] Check NPU stats')
|
||||
if stats.get_plugin('npu').is_disabled():
|
||||
# Disable test if stats is disable in configuration file
|
||||
# Related to #3425
|
||||
return
|
||||
stats_grab = stats.get_plugin('npu').get_raw()
|
||||
self.assertTrue(isinstance(stats_grab, list), msg='NPU stats is not a list')
|
||||
# Test AMD NPU plugin with test data
|
||||
|
||||
Reference in New Issue
Block a user