commit | 36d08d82dbb58eb39c4551e10457713b7bb9c6eb | [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 | bfb6e3dca74652daffc117ceee7e35a82a0af9e2 [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>