-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1009 from cgwalters/path-enabled
Two changes for `bootc-status-updated.path`
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Verify our systemd units are enabled | ||
use std assert | ||
use tap.nu | ||
|
||
tap begin "verify our systemd units" | ||
|
||
let units = [ | ||
["unit", "status"]; | ||
# This one should be always enabled by our install logic | ||
["bootc-status-updated.path", "active"] | ||
] | ||
|
||
for elt in $units { | ||
let found_status = systemctl show -P ActiveState $elt.unit | str trim | ||
assert equal $elt.status $found_status | ||
} | ||
|
||
tap ok |