1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 16:45:07 +00:00

feat(status): alert on persistent high-cpu processes (#602)

* feat(status): alert on persistent high-cpu processes

* refactor(status): keep high-cpu alerts read-only

* fix(status): address lint and sudo test regressions

---------

Co-authored-by: Tw93 <hitw93@gmail.com>
This commit is contained in:
Felix
2026-03-21 08:22:01 +08:00
committed by GitHub
parent a99f9f97f2
commit 82e25632e0
9 changed files with 577 additions and 54 deletions

View File

@@ -73,6 +73,7 @@ setup() {
@test "request_sudo_access clears four lines in clamshell mode when Touch ID hint is shown" {
run bash -c '
unset MOLE_TEST_MODE MOLE_TEST_NO_AUTH
source "'"$PROJECT_ROOT"'/lib/core/common.sh"
source "'"$PROJECT_ROOT"'/lib/core/sudo.sh"
@@ -101,6 +102,7 @@ setup() {
@test "request_sudo_access keeps three-line cleanup in clamshell mode without Touch ID" {
run bash -c '
unset MOLE_TEST_MODE MOLE_TEST_NO_AUTH
source "'"$PROJECT_ROOT"'/lib/core/common.sh"
source "'"$PROJECT_ROOT"'/lib/core/sudo.sh"