Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests using /etc/glances/glances.conf from already installed version #1654

Closed
gyakovlev opened this issue May 2, 2020 · 1 comment
Closed
Labels
Milestone

Comments

@gyakovlev
Copy link

Description

test_001_plugins fails like this :

FAIL: test_001_plugins (__main__.TestGlances)                                                                                                                                                                                                                                               
Check mandatory plugins.                                                                                                                                                                                                                                                                    
----------------------------------------------------------------------                                                                                                                                                                                                                      
Traceback (most recent call last):                                                                                                                                                                                                                                                          
  File "unitest.py", line 88, in test_001_plugins                                                                                                                                                                                                                                           
    self.assertTrue(plugin in plugins_list)                                                                                                                                                                                                                                                 
AssertionError: False is not true

it happens if one has 3.1.4+ version installed which provides /etc/glances/glances.conf with

[irq]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
disable=True

irq plugin is listed as mandatory in test_001_plugins yet is not loaded during the test because host configuration leaks to the copy being tested/installed and the plugin gets disabled, yet checked for.

Versions

  • Glances & psutil (glances -V): Glances v3.1.4.1 with PsUtil v5.7.0
  • Operating System (lsb_release -a): gentoo

Logs

You can also pastebin the Glances logs file (https://glances.readthedocs.io/en/latest/config.html#logging)

@nicolargo
Copy link
Owner

Corrected on the DEVELOP branch.

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants