From 18209b6d63ad775024981a3b8163bc616e1ee81f Mon Sep 17 00:00:00 2001 From: scttbnsn <80784472+scttbnsn@users.noreply.github.com> Date: Mon, 2 Nov 2026 19:01:23 -0500 Subject: [PATCH] fix: escape the pmset table cell and isolate a package test from launchd --- README.md | 2 +- Tests/DilatedUITests/PowerPreferencesTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38e7337..cb4eea6 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Battery floor and Low Power Mode guards can end a hold before it drains your bat | **Triggers** | Named rules that keep the Mac awake while all their conditions match. Conditions: running or frontmost apps, processes, schedules, power, displays, network identity, Wi-Fi SSIDs, mounted volumes, USB and paired Bluetooth devices, selected audio output, CPU load and idle time. Dwell and grace delays. | | **Automation** | URL scheme, AppleScript, four Shortcuts actions and a `dilated` CLI. The CLI covers `on`, `off`, `status`, `run -- ` and renewable agent holds (`hold`, `release`). Configurable global shortcuts. | | **Drive Alive** | Opt-in. Writes a small hidden file to selected volumes at an interval you choose (30 to 3600 seconds) so they don't idle. It doesn't wake a sleeping Mac. | -| **Closed-lid mode** | Keeps the Mac running with the lid closed, through a sudo rule that lets Dilated run only `pmset -a disablesleep 0|1`. Admin accounts only. Experimental. A closed-lid trigger has to be armed each app run. | +| **Closed-lid mode** | Keeps the Mac running with the lid closed, through a sudo rule that lets Dilated run only `pmset -a disablesleep 0` and `1`. Admin accounts only. Experimental. A closed-lid trigger has to be armed each app run. | | **Feedback** | Optional notification banners and sounds, both off by default. Local history and statistics. | The [automation reference](docs/AUTOMATION.md) has every command, trigger condition and safety rule. diff --git a/Tests/DilatedUITests/PowerPreferencesTests.swift b/Tests/DilatedUITests/PowerPreferencesTests.swift index 70bc1cc..93d996d 100644 --- a/Tests/DilatedUITests/PowerPreferencesTests.swift +++ b/Tests/DilatedUITests/PowerPreferencesTests.swift @@ -93,7 +93,7 @@ import Testing var power = PowerState(onBattery: false, batteryPercent: 50) let model = AppModel( endpoint: .init(stateDirectory: directory), power: { power }, assertions: PowerAssertions(), - closedLid: inertClosedLid()) + closedLid: inertClosedLid(), helperMigration: inertMigration(directory)) defer { model.shutdown() } model.settings.batteryFloor = 30 model.settings.batteryFloorIgnoresAC = false