Skip to content

Commit 29f6761

Browse files
committed
wip: restorecon tests
1 parent 8aff03a commit 29f6761

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use std assert
2+
use tap.nu
3+
4+
tap begin "Run restorecon"
5+
6+
# Run restorecon and capture trimmed output
7+
let out = (restorecon -vnr /var/ /etc/ /usr/ /boot/ | str trim)
8+
9+
# Assert it's empty
10+
assert equal $out "" "restorecon run found incorrect labels: ($out)"
11+
12+
tap ok

0 commit comments

Comments
 (0)