[PATCH 4/4] rtemstoolkit/config: Unlock when printing to avoid blocking.
chrisj at rtems.org
chrisj at rtems.org
Tue Feb 5 05:10:13 UTC 2019
From: Chris Johns <chrisj at rtems.org>
---
tester/rt/config.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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')
--
2.19.1
More information about the devel
mailing list