• Laurent Dufour's avatar
    zdtm.py: Add optional dependency support · 6b13731d
    Laurent Dufour authored
    Depending on the distribution, binaries or shared libraries a test is
    dependent of may not be stored at the same place.
    
    This patch introduces the ability to define option in the dependency
    list, by separating the optional target names by a '|' character.
    
    For instance the dependency of test may be described this way:
    {'flavor': 'ns', 'deps': [ '/bin/foo|/usr/bin/foo' ], 'flags': 'suid'}
    
    Note, there shouldn't be any spaces around the '|'.
    
    If none of the optional dependency is satisfied, an error is raised.
    Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    6b13731d
zdtm.py 34.3 KB