def METHOD_NAME(self, test):
    code = test.result.code
    if code == lit.Test.EXCLUDED:
        return 'Test not selected (--filter, --max-tests)'
    if code == lit.Test.SKIPPED:
        return 'User interrupt'
    assert code == lit.Test.UNSUPPORTED
    features = test.getMissingRequiredFeatures()
    if features:
        return 'Missing required feature(s): ' + ', '.join(features)
    return 'Unsupported configuration'