From f962ac035fedd1b2e2f2ed1970f632477ef03c50 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 10 Jun 2021 16:46:12 +0200 Subject: [PATCH] CI: Enable publish tests only when started from weekend pipeline --- .../protocols/mqtt/publish_connect_test/app_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/test_apps/protocols/mqtt/publish_connect_test/app_test.py b/tools/test_apps/protocols/mqtt/publish_connect_test/app_test.py index 2cb19f5..fb53747 100644 --- a/tools/test_apps/protocols/mqtt/publish_connect_test/app_test.py +++ b/tools/test_apps/protocols/mqtt/publish_connect_test/app_test.py @@ -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))