Skip to content

Commit

Permalink
Fix and set to MODE_MULTIPROCESSING
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed May 6, 2023
1 parent 98d0ca4 commit 3ae4bf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/core/pyspec/eth2spec/gen_helpers/gen_base/gen_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
MODE_SINGLE_PROCESS = 'MODE_SINGLE_PROCESS'
MODE_MULTIPROCESSING = 'MODE_MULTIPROCESSING'

GENERATOR_MODE = MODE_SINGLE_PROCESS
GENERATOR_MODE = MODE_MULTIPROCESSING


@dataclass
Expand Down Expand Up @@ -330,7 +330,7 @@ def generate_test_vector(test_case, case_dir, log_file, file_mode):
else:
# If no written_part, the only file was incomplete_tag_file. Clear the existing case_dir folder.
if not written_part:
print(f"test case {case_dir} did not produce any written_part")
print(f"[Error] test case {case_dir} did not produce any written_part")
shutil.rmtree(case_dir)
result = -1
else:
Expand Down Expand Up @@ -384,6 +384,7 @@ def output_part(case_dir, log_file, out_kind: str, name: str, fn: Callable[[Path

def execute_test(test_case, case_dir, meta, log_file, file_mode, cfg_yaml, yaml):
result = test_case.case_fn()
written_part = False
for (name, out_kind, data) in result:
written_part = True
if out_kind == "meta":
Expand Down

0 comments on commit 3ae4bf1

Please sign in to comment.