from typing import Tuple


def parse_filter(f: str) -> Tuple[list, list]:
    """
    Parse gtest style test filter:
        include1:include2:-exclude1:exclude2
    """
    inc = []
    exc = []
    l = inc
    for s in f.split(":"):
        if s.startswith("-"):
            l = exc
            s = s[1:]
        l.append(s)
    return inc, exc