Update benchmark/run-tests-benchmark-baseline.py
Tests / Run-Tests (push) Successful in 6s Details
Benchmarks / Run-Benchmarks (push) Successful in 5m34s Details

multiline-output
drunkendog 2023-09-16 22:32:24 +01:00
parent 382baeb9be
commit d26610b855
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ for file_name in glob.glob("*.c", recursive=False):
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] in x)) as f:
to_run = f.read().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:
x_split = x.rsplit("\n", 1) x_split = x.rsplit("\n", 1)