test/py: Provide a way to check that a command fails
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jul 2016 15:40:41 +0000 (09:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:35 +0000 (18:22 -0400)
commit9e17b0345afe198490689d9f36fab3849e9ef69a
tree3a2f99565fb278053389a72c8fb179069efeb8ce
parent8b304a37df13477f02fca5a6f5eaa3e55d7b4bf1
test/py: Provide a way to check that a command fails

Sometimes we want to run a command and check that it fails. Add a function
to handle this. It can check the return code and also make sure that the
output contains a given error message.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/u_boot_utils.py