[v2,1/3] framework/test_result: Fix circular import
Commit Message
From: Owen Hilyard <ohilyard@iol.unh.edu>
This circular import is normally fine because the debugger module is
initialized before test_case is imported, but since that is not
necessarily the case with the dependency script, the circular import
needed to be removed.
Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
---
framework/test_case.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@@ -33,7 +33,6 @@
A base class for creating DTF test cases.
"""
import re
-import debugger
import traceback
import signal
import time
@@ -374,6 +373,10 @@ class TestCase(object):
"""
Execute all test cases in one suite.
"""
+
+ # local import to avoid circular import
+ import debugger
+
# prepare debugger rerun case environment
if self._enable_debug or self._debug_case:
debugger.AliveSuite = self