diff options
author | Chris Johns <chrisj@rtems.org> | 2019-02-05 16:07:24 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-02-08 05:41:03 +1100 |
commit | e6bf128eeade949c62ce3d213dfd57da72f08065 (patch) | |
tree | 80ffc730c7b419184d1c6149c6c821d50f1eea80 /tester/rt/config.py | |
parent | 5156445f7bc834319272a328b82b7bb0f289751b (diff) |
rtemstoolkit/config: Unlock when printing to avoid blocking.
Diffstat (limited to '')
-rw-r--r-- | tester/rt/config.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tester/rt/config.py b/tester/rt/config.py index 673c39b..457c0bd 100644 --- a/tester/rt/config.py +++ b/tester/rt/config.py @@ -46,6 +46,8 @@ from rtemstoolkit import execute from rtemstoolkit import log from rtemstoolkit import path +from rtemstoolkit import stacktraces + import console import gdb import tftp @@ -341,7 +343,14 @@ class file(config.file): def _realtime_trace(self, text): for l in text: - print(''.join(l)) + self._unlock() + try: + print(''.join(l)) + except: + stacktraces.trace() + raise + finally: + self._lock() def run(self): self.target_start_regx = self._target_regex('target_start_regex') |