Skip to content
Snippets Groups Projects
Commit 4232ac99 authored by Lazar Cristian-Stefan's avatar Lazar Cristian-Stefan
Browse files

Merge branch 'master' of gitlab.cs.pub.ro:iocla/tema3-2024-private

parents c76622fa 71a096a9
No related branches found
No related tags found
No related merge requests found
Pipeline #68292 passed
......@@ -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")
......@@ -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")
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