aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/helper.py
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2020-12-03 12:52:34 -0800
committerGravatar GitHub <noreply@github.com>2020-12-03 12:52:34 -0800
commitc8d2319aa8cb3ae8f3eaa6a7e6ddf95e364d5fe5 (patch)
tree5fb38a5508f0314a600976a23fd60d4277d23adf /infra/helper.py
parent8169d41e43e0c4ab7b381d6af50d847a475addc8 (diff)
[test_all] Rewrite in Python (#4769)
Rewrite test_all in python. Bash is quite annoying to write and test. One issue with bash is it is even worse than Python for parallelism (which may be causing #4707). Rewrite test_all in python and optimize base-runner/Dockerfile for fast development. Also, combine some docker layers.
Diffstat (limited to 'infra/helper.py')
-rwxr-xr-xinfra/helper.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/infra/helper.py b/infra/helper.py
index 6c02032c..e0dee6f9 100755
--- a/infra/helper.py
+++ b/infra/helper.py
@@ -277,7 +277,8 @@ def get_dockerfile_path(project_name):
def _get_corpus_dir(project_name=''):
- """Creates and returns path to /corpus directory for the given project (if specified)."""
+ """Creates and returns path to /corpus directory for the given project (if
+ specified)."""
directory = os.path.join(BUILD_DIR, 'corpus', project_name)
os.makedirs(directory, exist_ok=True)
@@ -285,7 +286,8 @@ def _get_corpus_dir(project_name=''):
def _get_output_dir(project_name=''):
- """Creates and returns path to /out directory for the given project (if specified)."""
+ """Creates and returns path to /out directory for the given project (if
+ specified)."""
directory = os.path.join(BUILD_DIR, 'out', project_name)
os.makedirs(directory, exist_ok=True)
@@ -293,7 +295,8 @@ def _get_output_dir(project_name=''):
def _get_work_dir(project_name=''):
- """Creates and returns path to /work directory for the given project (if specified)."""
+ """Creates and returns path to /work directory for the given project (if
+ specified)."""
directory = os.path.join(BUILD_DIR, 'work', project_name)
os.makedirs(directory, exist_ok=True)
@@ -627,7 +630,7 @@ def check_build(args):
if args.fuzzer_name:
run_args += ['test_one', os.path.join('/out', args.fuzzer_name)]
else:
- run_args.append('test_all')
+ run_args.append('test_all.py')
exit_code = docker_run(run_args)
if exit_code == 0: