Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gadget: test_properties.py::test_active fails #5

Open
notro opened this issue Jul 28, 2021 · 0 comments
Open

gadget: test_properties.py::test_active fails #5

notro opened this issue Jul 28, 2021 · 0 comments

Comments

@notro
Copy link
Owner

notro commented Jul 28, 2021

The gadget needs to take the GUD_REQ_SET_DISPLAY_ENABLE state into account when COMMITing state.
It needs to set property crtc.ACTIVE=0 in gud_gadget_req_set_state_check() if not enabled.

Failing test:

def test_active(pytestconfig, display):
# make sure the pipeline is disabled
state = display.state(keep=True)
state.disable()
state.mode = display.connector.modes[0]
image = display.image(state.mode)
state.fb = image.fb
display.enabled = False
image.text('SHOULD NOT SHOW', color='white', fraction=0.8)
image.write()
# GUD_REQ_SET_DISPLAY_ENABLE should not be issued now:
state.commit()
time.sleep(pytestconfig.test_delay)
display.enabled = True
image.clear()
image.text('ACTIVE=1', color='white', fraction=0.8)
image.write()
state.commit()

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

No branches or pull requests

1 participant