def __nice__(testres):
    dbname = (None if (testres.ibs is None) else testres.ibs.get_dbname())
    infostr_ = ('nCfg=%s' % testres.nConfig)
    if (testres.nConfig == 1):
        qreq_ = testres.cfgx2_qreq_[0]
        infostr_ += (' nQ=%s, nD=%s %s' % (len(qreq_.qaids), len(qreq_.daids), qreq_.get_pipe_hashid()))
    nice = ('%s %s' % (dbname, infostr_))
    return nice
def __nice__(testres):
    dbname = (None if (testres.ibs is None) else testres.ibs.get_dbname())
    infostr_ = ('nCfg=%s' % testres.nConfig)
    if (testres.nConfig == 1):
        qreq_ = testres.cfgx2_qreq_[0]
        infostr_ += (' nQ=%s, nD=%s %s' % (len(qreq_.qaids), len(qreq_.daids), qreq_.get_pipe_hashid()))
    nice = ('%s %s' % (dbname, infostr_))
    return nice