Finding
system_files/shared/usr/bin/ublue-privileged-setup has zero test coverage despite handling privileged hook execution. It shares the exact same get_config + hooks-directory pattern as ublue-system-setup and ublue-user-setup, both of which already have bats tests in tests/test_setup_scripts.bats.
The script reads config, resolves a hooks directory, and executes all scripts within it — any regression here affects privileged system operations.
Recommendation
Add a new section to tests/test_setup_scripts.bats (or a dedicated test_privileged_setup.bats) covering:
get_config returns fallback when config file is missing
get_config reads the privileged-hooks-directory value from JSON
- Hooks in the directory are executed
- Exits cleanly when hooks directory is missing
HOOKS_VERBOSE=true enables set -x (verify via stderr output)
This mirrors the existing test patterns for ublue-system-setup and ublue-user-setup.
Priority
- Impact: high — untested privileged execution path
- Effort: low — existing test patterns can be directly reused
Filed by quality agent (hold-gated mode)
Common · issue pipeline
▶ triage needs kind/ + area/ then /approve
· discussing —
· queued —
· claimed —
· done —
area: — priority: —
maintainer: set kind/ + area/ labels, then comment /approve
reporter: answer questions; add repro steps if a bug
Finding
system_files/shared/usr/bin/ublue-privileged-setuphas zero test coverage despite handling privileged hook execution. It shares the exact sameget_config+ hooks-directory pattern asublue-system-setupandublue-user-setup, both of which already have bats tests intests/test_setup_scripts.bats.The script reads config, resolves a hooks directory, and executes all scripts within it — any regression here affects privileged system operations.
Recommendation
Add a new section to
tests/test_setup_scripts.bats(or a dedicatedtest_privileged_setup.bats) covering:get_configreturns fallback when config file is missingget_configreads theprivileged-hooks-directoryvalue from JSONHOOKS_VERBOSE=trueenablesset -x(verify via stderr output)This mirrors the existing test patterns for
ublue-system-setupandublue-user-setup.Priority
Filed by quality agent (hold-gated mode)
Common · issue pipeline
area: — priority: —
maintainer: set kind/ + area/ labels, then comment /approve
reporter: answer questions; add repro steps if a bug