From 164be1cd5227949cc4d099fe3864569b13efcad0 Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Tue, 17 Jan 2023 17:45:16 +0300 Subject: [PATCH] tests: Replace 'debug_backend' with 'esp-debug-backend' from PyPi --- examples/system/sysview_tracing/example_test.py | 2 +- examples/system/sysview_tracing_heap_log/example_test.py | 2 +- tools/ci/python_packages/ttfw_idf/DebugUtils.py | 8 ++++---- tools/requirements/requirements.ttfw.txt | 2 +- tools/test_apps/system/gdb_loadable_elf/app_test.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/system/sysview_tracing/example_test.py b/examples/system/sysview_tracing/example_test.py index 0e1cea85a7..7c502d8ba3 100644 --- a/examples/system/sysview_tracing/example_test.py +++ b/examples/system/sysview_tracing/example_test.py @@ -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 diff --git a/examples/system/sysview_tracing_heap_log/example_test.py b/examples/system/sysview_tracing_heap_log/example_test.py index cea4e334ec..f5208149fc 100644 --- a/examples/system/sysview_tracing_heap_log/example_test.py +++ b/examples/system/sysview_tracing_heap_log/example_test.py @@ -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 diff --git a/tools/ci/python_packages/ttfw_idf/DebugUtils.py b/tools/ci/python_packages/ttfw_idf/DebugUtils.py index f7e22414bd..efce2c967b 100644 --- a/tools/ci/python_packages/ttfw_idf/DebugUtils.py +++ b/tools/ci/python_packages/ttfw_idf/DebugUtils.py @@ -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 diff --git a/tools/requirements/requirements.ttfw.txt b/tools/requirements/requirements.ttfw.txt index 6203f1dfc2..d6b313f322 100644 --- a/tools/requirements/requirements.ttfw.txt +++ b/tools/requirements/requirements.ttfw.txt @@ -32,7 +32,7 @@ protobuf SimpleWebSocketServer # py_debug_backend -debug_backend +esp_debug_backend # examples/protocols/mqtt # tools/test_apps/protocols/mqtt diff --git a/tools/test_apps/system/gdb_loadable_elf/app_test.py b/tools/test_apps/system/gdb_loadable_elf/app_test.py index 68347b0c20..b441c3c566 100644 --- a/tools/test_apps/system/gdb_loadable_elf/app_test.py +++ b/tools/test_apps/system/gdb_loadable_elf/app_test.py @@ -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