Fix bug
parent
f36cb77326
commit
1eea2a74eb
|
@ -24,7 +24,7 @@ for file_name in glob.glob("*.c", recursive=False):
|
||||||
if should_continue != "y":
|
if should_continue != "y":
|
||||||
continue
|
continue
|
||||||
subprocess.run(["gcc", "-o", "a.out", "-std=c11", "-Wall", "-g", file_name], check=True)
|
subprocess.run(["gcc", "-o", "a.out", "-std=c11", "-Wall", "-g", file_name], check=True)
|
||||||
with open(next(x for x in file_list if os.path.splitext(file_name)[0] in x)) as f:
|
with open(next(x for x in file_list if os.path.splitext(file_name)[0] == x)) as f:
|
||||||
to_run = f.read().strip().split("\n\n")
|
to_run = f.read().strip().split("\n\n")
|
||||||
total_tests, passed_tests = 0, 0
|
total_tests, passed_tests = 0, 0
|
||||||
for x in to_run:
|
for x in to_run:
|
||||||
|
|
Loading…
Reference in New Issue