Skip to content

Commit

Permalink
fix: don't require hddtemp/hdparm for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jun 21, 2023
1 parent ec98574 commit 8289284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
with:
python-version: ${{matrix.python-version}}
- run: |
sudo apt-get install hddtemp hdparm
pip install -U pip
pip install coveralls
pip install -r requirements.txt
Expand Down
7 changes: 3 additions & 4 deletions hddfancontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,9 @@ def cl_main(): # noqa: C901
logging.getLogger("Startup").error("You need to run this script as root")
exit(1)

# check mandatory deps
bin_dep.check_bin_dependency(("hdparm",))

if args.test_mode or (args.fan_start_value is None) or (args.fan_stop_value is None):
if (args.fan_start_value is None) or (args.fan_stop_value is None):
logging.getLogger("Startup").warning(
Expand Down Expand Up @@ -1326,9 +1329,5 @@ def cl_main(): # noqa: C901
)


# check deps
bin_dep.check_bin_dependency(("hddtemp", "hdparm"))


if __name__ == "__main__":
cl_main()

0 comments on commit 8289284

Please sign in to comment.