Skip to content
Commit fe806861 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

test: Use a local variable for test state



At present we use a global test state for all driver-model tests. Make use
of a local struct like we do with the other tests.

To make this work, add functions to get and set this state. When a test
starts, the state is set (so it can be used in the test). When a test
finishes, the state is unset, so it cannot be used by mistake.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent d2281bb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment