Skip to content

Commit 1115574

Browse files
authored
fix(eofwrap): fixture_format and auxiliary logging (#1258)
* fix(eofwrap): Add generation error logging * fix(eofwrap): Ensure fixture_format is present
1 parent 2c4d277 commit 1115574

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cli/eofwrap.py

+3
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool):
228228
self.metrics[self.FIXTURES_CANT_GENERATE] += 1
229229
self.metrics[self.ACCOUNTS_CANT_GENERATE] += len(fixture_eof_codes)
230230

231+
print(f"Exception {e} occurred during generation of {in_path}: {fixture_id}")
232+
231233
if len(out_fixtures) == 0:
232234
self.metrics[self.FILES_SKIPPED] += 1
233235
return
@@ -311,6 +313,7 @@ def _wrap_fixture(self, fixture: BlockchainFixture, traces: bool):
311313
fork=Osaka,
312314
fixture_format=BlockchainFixture,
313315
)
316+
result.info["fixture_format"] = "blockchain_test"
314317
if traces:
315318
print_traces(t8n.get_traces())
316319
return result

0 commit comments

Comments
 (0)