Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@

import argparse
import os
import shutil
import subprocess
import sys
import pathlib

sys.path.append(
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'pylib')
)

from embench_core import check_python_version
from embench_core import log
from embench_core import gp
from embench_core import setup_logging
from embench_core import log_args
from embench_core import find_benchmarks
from embench_core import log_benchmarks

# The various sets of benchmarks we could run

Expand Down Expand Up @@ -1295,6 +1289,7 @@ def benchmark(arglist, timeout, desc, resfile, append):
# Dump the data if successful
if succeeded:
mode = 'a' if append else 'w'
pathlib.Path(resfile).resolve().parent.mkdir(exist_ok=True)
with open(resfile, mode) as fileh:
for line in res.stdout.decode('utf-8').splitlines(keepends=True):
if not 'All benchmarks ' + desc + ' successfully' in line:
Expand Down