From d1a0493a79257be5f74032664ad10e680a79b4c0 Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Fri, 11 Mar 2022 18:34:44 +0800 Subject: [PATCH] CI: rename some tests to avoid duplicated test names * Original commit: espressif/esp-idf@4dc74c9c420ef92abcc6e603c793b9d76ff47537 --- examples/protocols/modbus/serial/example_test.py | 4 ++-- examples/protocols/modbus/tcp/example_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/protocols/modbus/serial/example_test.py b/examples/protocols/modbus/serial/example_test.py index 5fb39bd..4a8b15d 100644 --- a/examples/protocols/modbus/serial/example_test.py +++ b/examples/protocols/modbus/serial/example_test.py @@ -169,7 +169,7 @@ def test_check_mode(dut=None, mode_str=None, value=None): @ttfw_idf.idf_example_test(env_tag='Example_T2_RS485', target=['esp32']) -def test_modbus_communication(env, comm_mode): +def test_modbus_serial_communication(env, comm_mode): global logger # Get device under test. "dut1 - master", "dut2 - slave" must be properly connected through RS485 interface driver @@ -286,5 +286,5 @@ if __name__ == '__main__': logger.addHandler(fh) logger.addHandler(ch) logger.info('Start script %s.' % os.path.basename(__file__)) - test_modbus_communication() + test_modbus_serial_communication() logging.shutdown() diff --git a/examples/protocols/modbus/tcp/example_test.py b/examples/protocols/modbus/tcp/example_test.py index 46e4f8a..925b465 100644 --- a/examples/protocols/modbus/tcp/example_test.py +++ b/examples/protocols/modbus/tcp/example_test.py @@ -206,7 +206,7 @@ def test_check_mode(dut=None, mode_str=None, value=None): @ttfw_idf.idf_example_test(env_tag='Example_Modbus_TCP', target=['esp32']) -def test_modbus_communication(env, comm_mode): +def test_modbus_tcp_communication(env, comm_mode): global logger rel_project_path = os.path.join('examples', 'protocols', 'modbus', 'tcp') @@ -305,4 +305,4 @@ def test_modbus_communication(env, comm_mode): if __name__ == '__main__': - test_modbus_communication() + test_modbus_tcp_communication()