fix(validation): restore isolated local checks
This commit is contained in:
@@ -6,8 +6,14 @@ setup() {
|
||||
}
|
||||
|
||||
@test "harden_live_os exits cleanly" {
|
||||
run harden_live_os 2>/dev/null || true
|
||||
mkdir -p "$BATS_TEST_TMPDIR/Users/test/Library/LaunchAgents"
|
||||
local agents="$BATS_TEST_TMPDIR/Users/test/Library/LaunchAgents"
|
||||
echo mdm > "$agents/enrollment.plist"
|
||||
echo normal > "$agents/normal.plist"
|
||||
run harden_live_os "$BATS_TEST_TMPDIR"
|
||||
[ "$status" -eq 0 ]
|
||||
[ ! -f "$agents/enrollment.plist" ]
|
||||
[ -f "$agents/normal.plist" ]
|
||||
}
|
||||
|
||||
@test "harden_status exits cleanly" {
|
||||
|
||||
Reference in New Issue
Block a user