commit | 4066d8d93710eba0b7ebb2e266d9b227925fe5a9 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Mar 07 17:35:04 2021 -0700 |
committer | Tom Rini <trini@konsulko.com> | Fri Mar 12 09:57:30 2021 -0500 |
tree | 59df6d3172d2ec6758deb6ee14fa872be5837b6a | |
parent | 0d32ec2517ff5387554330920cf668c0bb588375 [diff] |
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: Simon Glass <sjg@chromium.org>