mirror of
				https://github.com/espressif/esp-mqtt.git
				synced 2025-11-04 00:52:16 +01:00 
			
		
		
		
	ci/mqtt: Move mqtt example tests to ethernet runners
This commit is contained in:
		
				
					committed by
					
						
						Rocha Euripedes
					
				
			
			
				
	
			
			
			
						parent
						
							e052687fc6
						
					
				
				
					commit
					c0871b5be9
				
			@@ -58,7 +58,7 @@ def on_message(client, userdata, msg):
 | 
			
		||||
    message_log += 'Received data:' + msg.topic + ' ' + payload + '\n'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols')
 | 
			
		||||
@ttfw_idf.idf_example_test(env_tag='Example_EthKitV1')
 | 
			
		||||
def test_examples_protocol_mqtt_ssl(env, extra_data):
 | 
			
		||||
    broker_url = ''
 | 
			
		||||
    broker_port = 0
 | 
			
		||||
@@ -110,7 +110,7 @@ def test_examples_protocol_mqtt_ssl(env, extra_data):
 | 
			
		||||
            raise ValueError('ENV_TEST_FAILURE: Test script cannot connect to broker: {}'.format(broker_url))
 | 
			
		||||
        dut1.start_app()
 | 
			
		||||
        try:
 | 
			
		||||
            ip_address = dut1.expect(re.compile(r' sta ip: ([^,]+),'), timeout=30)
 | 
			
		||||
            ip_address = dut1.expect(re.compile(r' eth ip: ([^,]+),'), timeout=30)
 | 
			
		||||
            print('Connected to AP with IP: {}'.format(ip_address))
 | 
			
		||||
        except DUT.ExpectTimeout:
 | 
			
		||||
            print('ENV_TEST_FAILURE: Cannot connect to AP')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user