Merge branch 'bugfix/ci_debug_backend_import' into 'master'

CI: Ignore error if py_debug_backend is not installed

See merge request espressif/esp-idf!9269
This commit is contained in:
He Yin Ling 2020-06-24 14:44:44 +08:00
commit 23801b3517

View file

@ -14,12 +14,28 @@
from __future__ import unicode_literals
from io import open
from tiny_test_fw import Utility
import debug_backend
import logging
import pexpect
import pygdbmi.gdbcontroller
from tiny_test_fw import Utility
try:
import debug_backend
except ImportError:
# Exception is ignored so the package is not required for those who don't use debug utils.
err_msg = 'Please install py_debug_backend for debug utils to work properly!'
class debug_backend(object):
@staticmethod
def create_oocd(*args, **kwargs):
raise RuntimeError(err_msg)
@staticmethod
def create_gdb(*args, **kwargs):
raise RuntimeError(err_msg)
class CustomProcess(object):
def __init__(self, cmd, logfile, verbose=True):