Repository navigation
Keep the hibernation prompt memory size locale-safe - #14520
Conversation
|
8146783 to
99d980a
Compare
|
Greptile was right that an ambient |
|
Reviewed at 99d980a and verified on a fresh Omarchy worker. Nothing found to change. Reproduction. On the worker, Suite. The full shell suite ran on the worker with this change applied: 6458 passed, 2 failed. The failures are in Second opinion. Codex at medium effort found no defects: This is waiting on the maintainer. |
quattro added its own test/shell.d/hibernation-setup-test.sh for the locale-safe memory prompt (omacom#14520). Both tests are kept in one file: the locale check runs last with its own stubs, and uses the image_size override so it no longer skips where /sys/power/image_size is absent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
quattro added its own test/shell.d/hibernation-setup-test.sh (the locale-safe memory prompt check, omacom#14520), which collided with this branch's new test of the same name. Keep quattro's file as it is and move this branch's fixture test to hibernation-resume-setup-test.sh: the two test different things, and quattro's skips the whole file on a host without /sys/power/image_size, which would have skipped the fixture tests too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes #14507.
omarchy hibernation setupreads the total memory fromfree --humanfor its confirmation prompt.freelocalizes its row labels, but the parser only matchesMem. On a non-English locale such aszh_CN.UTF-8, the match is empty and the user seesUse on boot drive to make hibernation available?.I scoped
LC_ALL=Cto this onefreecall. That keeps the existing parser and output format while leaving the user's locale unchanged for the rest of the command. Swap sizing is unaffected because it already reads/proc/meminfo; this only repairs the interactive size shown before setup.The focused regression runs the real setup command with a
freefixture that emits a localized label unless it receivesLC_ALL=C, then stops safely at the confirmation prompt. Before the implementation it failed because the prompt had no size. It now passes withUse 31Gi on boot drive to make hibernation available?.Checked with:
test/shell.d/hibernation-setup-test.shbash -n bin/omarchy-hibernation-setup test/shell.d/hibernation-setup-test.shshellcheck -S warning bin/omarchy-hibernation-setup test/shell.d/hibernation-setup-test.shgit diff --checkI did not create a real swapfile or rebuild a UKI; the changed path ends at the confirmation prompt.