def parse_summary_string( summary_string ):
    """
    Parses the summary string from vvtest output, such as

        Summary: pass=0, fail=1, diff=0, timeout=0, notdone=0, notrun=1, skip=0

    Returns dictionary of these names to their values.
    """
    valD = {}

    for spec in summary_string.split():
        spec = spec.strip(',')
        if '=' in spec:
            nv = spec.split('=')
            assert len(nv) == 2
            valD[ nv[0] ] = int( nv[1] )

    return valD