Skip to content

Comments

Detect state tests via "parentHash" field#1006

Closed
petertdavies wants to merge 1 commit intoethereum:forks/praguefrom
petertdavies:state-test-detection-hack
Closed

Detect state tests via "parentHash" field#1006
petertdavies wants to merge 1 commit intoethereum:forks/praguefrom
petertdavies:state-test-detection-hack

Conversation

@petertdavies
Copy link
Contributor

What was wrong?

EEST is feeding t8n state tests with telling us they are state tests. There is no standardised way to detect them.

How was it fixed?

Add a hack that assumes any test missing the "parentHash" field is a state test.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

with open(t8n.options.input_env, "r") as f:
data = json.load(f)

if "parentHash" not in data:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather avoid cases like this. They tend to accumulate over time and make the command-line interface less straightforward.

Can we fix EEST to add the --state-test flag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants