]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: Raise a ValueError if a command fails
authorSimon Glass <sjg@chromium.org>
Sat, 23 Oct 2021 23:26:12 +0000 (17:26 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
commit9e6e1462d6a7b9483d2397caddfde53e8e55eaca
tree1d5efba0d146dcd1a6a449963ea738cc6e4ff73e
parent4ac70e3c4a4b642b97a8ae5a564a7f9cb086c305
test/py: Raise a ValueError if a command fails

At present an Exception is raised if a command fails. This is a very broad
class and makes it difficult for callers to catch the error without also
catching other things, like programming bugs.

Change it to ValueError to make this easier.

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