tests: Replace 'debug_backend' with 'esp-debug-backend' from PyPi

This commit is contained in:
Alexey Gerenkov 2023-01-17 17:45:16 +03:00
parent 58b52c1230
commit 164be1cd52
5 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ import tempfile
import time import time
from io import open from io import open
import debug_backend import esp_debug_backend as debug_backend
import ttfw_idf import ttfw_idf

View File

@ -5,7 +5,7 @@ import re
import tempfile import tempfile
from io import open from io import open
import debug_backend import esp_debug_backend as debug_backend
import ttfw_idf import ttfw_idf

View File

@ -10,10 +10,10 @@ import pexpect
from tiny_test_fw import Utility from tiny_test_fw import Utility
try: try:
import debug_backend import esp_debug_backend as debug_backend
except ImportError: except ImportError:
# Exception is ignored so the package is not required for those who don't use debug utils. # 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!' err_msg = 'Please install esp-debug-backend for debug utils to work properly!'
class debug_backend(object): # type: ignore class debug_backend(object): # type: ignore
@staticmethod @staticmethod
@ -27,11 +27,11 @@ except ImportError:
try: try:
from debug_backend.defs import NoGdbProcessError from debug_backend.defs import NoGdbProcessError
except ImportError: except ImportError:
# fallback for pygdbmi<0.10.0.0 which is used in the previous version of debug_backend # fallback for pygdbmi<0.10.0.0 which is used in the previous version of esp-debug-backend
try: try:
from pygdbmi.gdbcontroller import NoGdbProcessError from pygdbmi.gdbcontroller import NoGdbProcessError
except ImportError: except ImportError:
# If debug_backend is not installed, the exception is ignored. # If esp-debug-backend is not installed, the exception is ignored.
class NoGdbProcessError(ValueError): # type: ignore class NoGdbProcessError(ValueError): # type: ignore
pass pass

View File

@ -32,7 +32,7 @@ protobuf
SimpleWebSocketServer SimpleWebSocketServer
# py_debug_backend # py_debug_backend
debug_backend esp_debug_backend
# examples/protocols/mqtt # examples/protocols/mqtt
# tools/test_apps/protocols/mqtt # tools/test_apps/protocols/mqtt

View File

@ -4,7 +4,7 @@ import os
import threading import threading
import time import time
import debug_backend import esp_debug_backend as debug_backend
import pexpect import pexpect
import serial import serial
import ttfw_idf import ttfw_idf