Skip to content
Snippets Groups Projects
Commit 4783ab10 authored by Vlad-Andrei BĂDOIU (78692)'s avatar Vlad-Andrei BĂDOIU (78692)
Browse files

Update the checker

parent 9ad5d896
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,8 @@ def run_tests(machine, args, tests=TESTS): ...@@ -64,8 +64,8 @@ def run_tests(machine, args, tests=TESTS):
else: else:
critteria = [CRITTERIA_DICT[c] for c in args.validation_type] critteria = [CRITTERIA_DICT[c] for c in args.validation_type]
total = 10 total = 0
total_max_score = 10 + 45 * len(critteria) total_max_score = 100
os.makedirs(LOGDIR, exist_ok=True) os.makedirs(LOGDIR, exist_ok=True)
...@@ -79,12 +79,12 @@ def run_tests(machine, args, tests=TESTS): ...@@ -79,12 +79,12 @@ def run_tests(machine, args, tests=TESTS):
try: try:
cscore = run_test(machine, args, test, critteria, dbglog) cscore = run_test(machine, args, test, critteria, dbglog)
print("PASS" if 2 * cscore == len(critteria) else "FAIL") print("PASS" if 2 * cscore == len(critteria) else "FAIL")
cscore *= 4.5 cscore *= 5
total += cscore total += cscore
except tm.StepLimitExceeded: except tm.StepLimitExceeded:
print("SLE") print("SLE")
print(f"Total: {total}/{total_max_score}") print(f"Total:{int(total)}/{total_max_score}")
def parse_machine(path): def parse_machine(path):
...@@ -135,7 +135,7 @@ def main(): ...@@ -135,7 +135,7 @@ def main():
path = args.tm path = args.tm
machine = parse_machine(path) 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: with open("README", "r") as fin:
first = fin.readline().strip("\n") first = fin.readline().strip("\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment