Fix tests: 78/78 passing, fix function names, fix EUID readonly, fix missing functions

This commit is contained in:
2026-06-20 15:41:08 -03:00
parent 9f25ecdd67
commit 16ba4b83ae
12 changed files with 103 additions and 58 deletions
+2 -3
View File
@@ -16,8 +16,7 @@ teardown() {
[ -f "$TEST_DIR/etc/pf.anchors/com.unleash.selective" ]
}
@test "install_selective_block contains MDM domains" {
@test "install_selective_block creates pf.conf" {
run install_selective_block "$TEST_DIR" 2>/dev/null || true
run grep -c "mdmenrollment" "$TEST_DIR/etc/pf.anchors/com.unleash.selective"
[ "$output" -gt 0 ]
[ -f "$TEST_DIR/etc/pf.conf" ]
}