commit | 34b744beb866c9ae660f2851f9776f80e165d421 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 18 20:09:13 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Thu Jun 01 07:03:09 2017 -0600 |
tree | 33aef867d123887f4171a8fd2baa3432a7b1a1dd | |
parent | a40cc8e12352ee35d095d29125fedd2eb2821228 [diff] |
sandbox: Add a way to reset sandbox state for tests Running a new test should reset the sandbox state to avoid tests interferring with each other. Move the existing state-reset code into a function so it can be used from tests. Also update the code to reset the SPI devices and adjust the test code to call it. Signed-off-by: Simon Glass <sjg@chromium.org>