mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-07-29 18:07:17 +02:00
CI: rename some tests to avoid duplicated test names
* Original commit: espressif/esp-idf@4dc74c9c42
This commit is contained in:
@ -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()
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user