diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-31 17:35:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-05 20:55:19 -0400 |
commit | 7f64b1874c22b52259a8380de13d824e6b0ce2c8 (patch) | |
tree | 2847448aa07a743d3615f3742cec5c4557b50b66 /test/py/multiplexed_log.py | |
parent | bcbd0c8fe1bdd95f07d773d076b5101a01e48287 (diff) | |
download | u-boot-7f64b1874c22b52259a8380de13d824e6b0ce2c8.tar.gz u-boot-7f64b1874c22b52259a8380de13d824e6b0ce2c8.tar.xz u-boot-7f64b1874c22b52259a8380de13d824e6b0ce2c8.zip |
test: Check exit status in run_and_log_expect_exception()
This check was missed. Add it and make the message more verbose.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Tom Rini <trini@konsulko.com>
Fixes: 9e17b034 (test/py: Provide a way to check that a command fails)
Diffstat (limited to 'test/py/multiplexed_log.py')
-rw-r--r-- | test/py/multiplexed_log.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/multiplexed_log.py b/test/py/multiplexed_log.py index 35a32fb5c0..bf926c3e77 100644 --- a/test/py/multiplexed_log.py +++ b/test/py/multiplexed_log.py @@ -102,6 +102,7 @@ class RunAndLog(object): self.name = name self.chained_file = chained_file self.output = None + self.exit_status = None def close(self): """Clean up any resources managed by this object.""" @@ -166,6 +167,7 @@ class RunAndLog(object): # Store the output so it can be accessed if we raise an exception. self.output = output + self.exit_status = exit_status if exception: raise exception return output |