mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
tests: Replace 'debug_backend' with 'esp-debug-backend' from PyPi
This commit is contained in:
parent
58b52c1230
commit
164be1cd52
@ -6,7 +6,7 @@ import tempfile
|
||||
import time
|
||||
from io import open
|
||||
|
||||
import debug_backend
|
||||
import esp_debug_backend as debug_backend
|
||||
import ttfw_idf
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@ import re
|
||||
import tempfile
|
||||
from io import open
|
||||
|
||||
import debug_backend
|
||||
import esp_debug_backend as debug_backend
|
||||
import ttfw_idf
|
||||
|
||||
|
||||
|
@ -10,10 +10,10 @@ import pexpect
|
||||
from tiny_test_fw import Utility
|
||||
|
||||
try:
|
||||
import debug_backend
|
||||
import esp_debug_backend as 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!'
|
||||
err_msg = 'Please install esp-debug-backend for debug utils to work properly!'
|
||||
|
||||
class debug_backend(object): # type: ignore
|
||||
@staticmethod
|
||||
@ -27,11 +27,11 @@ except ImportError:
|
||||
try:
|
||||
from debug_backend.defs import NoGdbProcessError
|
||||
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:
|
||||
from pygdbmi.gdbcontroller import NoGdbProcessError
|
||||
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
|
||||
pass
|
||||
|
||||
|
@ -32,7 +32,7 @@ protobuf
|
||||
SimpleWebSocketServer
|
||||
|
||||
# py_debug_backend
|
||||
debug_backend
|
||||
esp_debug_backend
|
||||
|
||||
# examples/protocols/mqtt
|
||||
# tools/test_apps/protocols/mqtt
|
||||
|
@ -4,7 +4,7 @@ import os
|
||||
import threading
|
||||
import time
|
||||
|
||||
import debug_backend
|
||||
import esp_debug_backend as debug_backend
|
||||
import pexpect
|
||||
import serial
|
||||
import ttfw_idf
|
||||
|
Loading…
x
Reference in New Issue
Block a user