Add focused regression tests ensuring 'start' and 'stop' require exactly one unit name, build correct exec commands per runtime, and that startall/stopall sort by Order with proper tiebreakers and skip disabled/uninstalled units.
Add focused regression tests ensuring 'start' and 'stop' require exactly one unit name, build correct exec commands per runtime, and that startall/stopall sort by Order with proper tiebreakers and skip disabled/uninstalled units.
Add cmd/start_test.go and systemd/start_stop_test.go with regression
tests covering:
- Start/Stop require exactly one unit name argument (cobra.ExactArgs(1)
semantics verified via ValidateArgs)
- Start/Stop build correct exec commands per runtime
- StartAll sorts units by Order asc, then Name asc as tiebreaker
- StopAll sorts units by Order desc, then Name desc as tiebreaker
- StartAll skips disabled units (Enabled=false)
- StopAll skips uninstalled units
These tests enforce the CLI semantics that 'start' starts only a specific
unit and 'stop' stops only a specific unit; 'startall' and 'stopall'
operate on all matching units.
Run: make test
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add focused regression tests ensuring 'start' and 'stop' require exactly one unit name, build correct exec commands per runtime, and that startall/stopall sort by Order with proper tiebreakers and skip disabled/uninstalled units.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.