Add install history recording and batch reinstall from history#465
Add install history recording and batch reinstall from history#465
Conversation
- Add record_install_history function to common.sh - Record install commands to ~/.config/pengwin/install-history.txt after successful installs - Add batch-install.sh for reinstalling from history with checkbox UI - Add BATCHINSTALL menu entry to maintenance.sh - Update bash completions for MAINTENANCE sub-commands - Update help text with MAINTENANCE actions - Add batch-install test Co-authored-by: crramirez <8397379+crramirez@users.noreply.github.com>
…ility Co-authored-by: crramirez <8397379+crramirez@users.noreply.github.com>
|
@copilot tests are failing |
The test_install_history_multiple_entries test was failing because `run cat file | wc -l` counts login shell output (MOTD, etc.) along with file content. Using `run grep -cF '' file` counts lines within the su context, so only file lines are counted. Co-authored-by: crramirez <8397379+crramirez@users.noreply.github.com>
... Fixed in 85484a6. The |
|
@copilot shunit2:ERROR test_install_history_multiple_entries() returned non-zero return code. |
…h entries The tests were failing because `run` uses `su -` which outputs login shell messages (MOTD) to stdout. Using `grep -cxF 'exact entry'` outside the run context (piped from `run cat`) counts only exact matches of history entries, following the same pattern used by other tests in the suite (e.g., pythonpi.sh). Co-authored-by: crramirez <8397379+crramirez@users.noreply.github.com>
Fixed in fc4b0c1. The root cause was that the Rewrote the tests to use |
record_install_historyfunction tocommon.shthat appends install commands to$HOME/.config/pengwin/install-history.txtrecord_install_historyin the mainpengwin-setupscript after successfulinstall_menucompletion (skip uninstall commands)pengwin-setup.d/batch-install.sh- batch install from history script with checkbox dialogpengwin-setup.d/maintenance.shcompletions/pengwin-setupwith MAINTENANCE completionstests/batch-install.shtests/run_tests.shgrep -cxFwith specific patterns piped fromrun cat, matching existing test patterns in the suiteOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.