def info_outdated_strong(db, candidates=None): """candidates wose testrun info is not uptodate with testinfo the db is not modified candidates=None means 'all know scripts' if a script can't be read, then is considered outdated """ # un loop comparando el md5 actual con el de testrun have_testrun, no_comply = get_scripts(db, 'testrun_present') outdated = set() for name in have_testrun: fname = db.fname_from_canonical(name) try: text = doers.load_text(fname) except Exception: outdated.add(name) continue actual_md5 = doers.md5_hex(text) if actual_md5 != db.get_prop_value(name,'testrun_md5'): outdated.add(name) return outdated
def info_outdated_strong(db, candidates=None): """candidates wose testrun info is not uptodate with testinfo the db is not modified candidates=None means 'all know scripts' if a script can't be read, then is considered outdated """ # un loop comparando el md5 actual con el de testrun have_testrun, no_comply = get_scripts(db, 'testrun_present') outdated = set() for name in have_testrun: fname = db.fname_from_canonical(name) try: text = doers.load_text(fname) except Exception: outdated.add(name) continue actual_md5 = doers.md5_hex(text) if actual_md5 != db.get_prop_value(name, 'testrun_md5'): outdated.add(name) return outdated
def scanprops_from_fname(fname): try: text = doers.load_text(fname) except: text = None return scanprops_from_text(text, fname)