Add fixtures and unit tests for auto suspend functionality
- Introduced fixture files for AMD and NVIDIA GPU monitoring outputs, CPU usage statistics, and user sessions. - Created a comprehensive unit test suite for the auto_suspend module, covering state management, CPU and GPU measurement, user activity detection, and evaluation logic. - Updated Ansible tasks to install Python instead of bc, create necessary directories and log files, and ensure proper SELinux context for the auto suspend script. - Modified the systemd service and timer configurations to improve the auto suspend functionality, including command-line arguments for the Python script.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
Linux 6.17.11-200.fc42.x86_64 (gpu-01) 06/08/26 _x86_64_ (12 CPU)
|
||||
|
||||
21:37:19 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
|
||||
21:37:20 all 0.00 0.00 0.17 0.00 0.17 0.08 0.00 0.00 0.00 99.58
|
||||
Average: all 0.00 0.00 0.17 0.00 0.17 0.08 0.00 0.00 0.00 99.58
|
||||
Reference in New Issue
Block a user