CI: Ignore error if py_debug_backend not installed

This commit is contained in:
Roland Dobai 2020-06-22 12:36:47 +02:00
parent 3266511582
commit 50e817fc77

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):