CI: Enable publish tests only when started from weekend pipeline

This commit is contained in:
David Cermak
2025-09-19 18:51:40 +08:00
committed by Rocha Euripedes
parent 9bc1e1a011
commit f962ac035f
@@ -352,7 +352,10 @@ def test_app_protocol_mqtt_publish_connect(env, extra_data):
raise Exception('Unexpected negotiated protocol {}'.format(s.get_negotiated_protocol()))
#
# start publish tests
# start publish tests only if enabled in the environment (for weekend tests only)
if not os.getenv('MQTT_PUBLISH_TEST'):
return
def start_publish_case(transport, qos, repeat, published, queue):
print('Starting Publish test: transport:{}, qos:{}, nr_of_msgs:{}, msg_size:{}, enqueue:{}'
.format(transport, qos, published, repeat * DEFAULT_MSG_SIZE, queue))