]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - test/py/multiplexed_log.py
test: Check exit status in run_and_log_expect_exception()
[people/ms/u-boot.git] / test / py / multiplexed_log.py
index 35a32fb5c0514fdbd8e697680bac8e338b74edb9..bf926c3e7762ae37ffc026ebebf58e05641df50a 100644 (file)
@@ -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