From 665c520fafd2b95429796008a09924f216f02703 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Mon, 5 Jul 2021 14:33:56 +0800 Subject: [PATCH] [examples]: removed hyphens Replaced hyphens with underscores in examples project definition for all examples which had hyphens in their project name. dpp-enrollee is an exceptions because the name matches the project directory name while the project directory also contains hyphens. * Original commit: espressif/esp-idf@81e926620498e55beb8eb4bd9c4169e8f3338563 --- examples/protocols/websocket/CMakeLists.txt | 2 +- examples/protocols/websocket/Makefile | 2 +- examples/protocols/websocket/example_test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/protocols/websocket/CMakeLists.txt b/examples/protocols/websocket/CMakeLists.txt index f77ad23e5..320a49d19 100644 --- a/examples/protocols/websocket/CMakeLists.txt +++ b/examples/protocols/websocket/CMakeLists.txt @@ -7,4 +7,4 @@ cmake_minimum_required(VERSION 3.5) set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -project(websocket-example) +project(websocket_example) diff --git a/examples/protocols/websocket/Makefile b/examples/protocols/websocket/Makefile index 063a0a099..9c0adb31c 100644 --- a/examples/protocols/websocket/Makefile +++ b/examples/protocols/websocket/Makefile @@ -2,7 +2,7 @@ # This is a project Makefile. It is assumed the directory this Makefile resides in is a # project subdirectory. # -PROJECT_NAME := websocket-example +PROJECT_NAME := websocket_example EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common diff --git a/examples/protocols/websocket/example_test.py b/examples/protocols/websocket/example_test.py index 0955e7be9..2c99f384b 100644 --- a/examples/protocols/websocket/example_test.py +++ b/examples/protocols/websocket/example_test.py @@ -107,7 +107,7 @@ def test_examples_protocol_websocket(env, extra_data): """ dut1 = env.get_dut('websocket', 'examples/protocols/websocket', dut_class=ttfw_idf.ESP32DUT) # check and log bin size - binary_file = os.path.join(dut1.app.binary_path, 'websocket-example.bin') + binary_file = os.path.join(dut1.app.binary_path, 'websocket_example.bin') bin_size = os.path.getsize(binary_file) ttfw_idf.log_performance('websocket_bin_size', '{}KB'.format(bin_size // 1024))