diff --git a/checker.py b/checker.py index 2c19ed942cc761d8be72f29f06a54ac259e3d977..a69dbe66a193077974148d97702271382f7e4ef1 100755 --- a/checker.py +++ b/checker.py @@ -64,8 +64,8 @@ def run_tests(machine, args, tests=TESTS): else: critteria = [CRITTERIA_DICT[c] for c in args.validation_type] - total = 10 - total_max_score = 10 + 45 * len(critteria) + total = 0 + total_max_score = 100 os.makedirs(LOGDIR, exist_ok=True) @@ -79,12 +79,12 @@ def run_tests(machine, args, tests=TESTS): try: cscore = run_test(machine, args, test, critteria, dbglog) print("PASS" if 2 * cscore == len(critteria) else "FAIL") - cscore *= 4.5 + cscore *= 5 total += cscore except tm.StepLimitExceeded: print("SLE") - print(f"Total: {total}/{total_max_score}") + print(f"Total:{int(total)}/{total_max_score}") def parse_machine(path): @@ -135,7 +135,7 @@ def main(): path = args.tm machine = parse_machine(path) - if os.path.exists("README") and not args.validation_type: + if os.path.exists("README"): with open("README", "r") as fin: first = fin.readline().strip("\n")