BEGIN {
    FS = "\n";
}

/Targets:/ {
    while (getline && $0 != "") {
        if ($0 ~ /Tests/) continue;

        sub(/^ +/, "");
        print;
    }
}

BEGIN {
    FS = "\n";
}

/Targets:/ {
    while (getline && $0 != "") {
        if ($0 ~ /Test/) continue;

        sub(/^ +/, "");
        print;
    }
}

Exclude any target with "Test" in the name
