diff --git a/checker/checker.py b/checker/checker.py index fdf084beace8e83598e7d30ebb0f588909efe794..df6d14dd469db51e24094ba68d10a3b9f6b772d9 100644 --- a/checker/checker.py +++ b/checker/checker.py @@ -145,4 +145,4 @@ elif args.task != None: test_task(re.findall(r'\d', args.task)[0]) -print(f"====================== Total: {min(round(points), 100)} / 100 ======================\n") +print(f"====================== Total: {round(points)} / 130 ======================\n") diff --git a/src/local_checker.py b/src/local_checker.py index 5c7e8a70b1f0fd9fd3ee836b9d2c5047d5c9ffa7..4b6edd878be945e3c5f9ded437be29df122fb8e2 100644 --- a/src/local_checker.py +++ b/src/local_checker.py @@ -13,6 +13,7 @@ group = argParser.add_mutually_exclusive_group() group.add_argument("-t", "--task", help="Run tests for a certain task.") group.add_argument("--all", action="store_true", help="Run all tasks.") group.add_argument("--zip", action="store_true", help="Make zip file for VMChecker") +argParser.add_argument("--no_clean", action="store_false", help="Do not clean outputs after run") args = argParser.parse_args() if len(sys.argv) == 1: @@ -59,7 +60,8 @@ def test_task(taskNo): points += float(taskScore) - rc = subprocess.call(f"make -C {taskString} clean > /dev/null 2> /dev/null", shell=useShell) + if args.no_clean: + rc = subprocess.call(f"make -C {taskString} clean > /dev/null 2> /dev/null", shell=useShell) def test_bonus(): global points @@ -83,7 +85,8 @@ def test_bonus(): points += float(taskScore) - rc = subprocess.call(f"make -C {taskString} clean > /dev/null 2> /dev/null", shell=useShell) + if args.no_clean: + rc = subprocess.call(f"make -C {taskString} clean > /dev/null 2> /dev/null", shell=useShell) def run_linter(): global points @@ -145,4 +148,4 @@ elif args.task != None: test_task(re.findall(r'\d', args.task)[0]) -print(f"====================== Total: {min(round(points), 100)} / 100 ======================\n") +print(f"====================== Total: {round(points)} / 130 ======================\n")