Skip to content

Commit

Permalink
Check all
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Feb 17, 2023
1 parent 4e8ce3d commit 29f956b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions jtop/core/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,7 @@ def get_status(self):
fan_status[name]['rpm'] = [int(cat(rpm)) for rpm in data['rpm']]
# Check status fan control
if self._nvfancontrol:
is_active = nvfancontrol_is_active()
print("nvfancontrol_is_active={is_active}".format(is_active=is_active))
if is_active:
if nvfancontrol_is_active():
nvfan_query = nvfancontrol_query()
for fan, nvfan in zip(fan_status, nvfan_query):
fan_status[fan].update(nvfan_query[nvfan])
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ commands =
python setup.py check -m -s
flake8 .
# Run tests
py.test -v jtop/tests/test_02_fan.py::test_fan_set_profile
py.test -v

[flake8]
max-line-length = 160
Expand All @@ -61,9 +61,9 @@ exclude =
select = E,W,F

[pytest]
log_cli = true
addopts = --capture=no --ignore=jtop/tests_gui
# addopts = --ignore=jtop/tests_gui
# log_cli = true
# addopts = --capture=no --ignore=jtop/tests_gui
addopts = --ignore=jtop/tests_gui
log_cli_level = DEBUG
log_format = %(asctime)s [%(levelname)s] %(name)s - %(message)s
log_date_format = %Y-%m-%d %H:%M:%S
Expand Down

0 comments on commit 29f956b

Please sign in to comment.