[VOL-3879] Skip MultiOLT Suite TCs from Single OLT jobs
Change-Id: Ib7f6cb4a3104529910d993b8666fb4cfd669143a
diff --git a/tests/dt-workflow/Voltha_DT_MultiOLT_Tests.robot b/tests/dt-workflow/Voltha_DT_MultiOLT_Tests.robot
index 4d56081..ccebed1 100644
--- a/tests/dt-workflow/Voltha_DT_MultiOLT_Tests.robot
+++ b/tests/dt-workflow/Voltha_DT_MultiOLT_Tests.robot
@@ -66,14 +66,14 @@
[Setup] Start Logging MultiOlt_Physical_Dt
[Teardown] Run Keywords Collect Logs
... AND Stop Logging MultiOlt_Physical_Dt
+ # Execute the test when the number of OLTs are greater than one
+ Pass Execution If ${olt_count} == 1 Skipping test: just one OLT
Delete All Devices and Verify
# Add OLT device
Setup
# Performing Sanity Test to make sure subscribers are all DHCP and pingable
Run Keyword If ${has_dataplane} Clean Up Linux
Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT
- # Execute the test when the number of OLTs are greater than one
- Pass Execution If ${olt_count} == 1 Skipping test: just one OLT
# Reboot the first OLT from the list of olts - rebooting from the OLT CLI
${olt_user}= Get From Dictionary ${list_olts}[0] user
${olt_pass}= Get From Dictionary ${list_olts}[0] pass
diff --git a/tests/functional/Voltha_MultiOLT_Tests.robot b/tests/functional/Voltha_MultiOLT_Tests.robot
index 36c1b86..cdaa191 100644
--- a/tests/functional/Voltha_MultiOLT_Tests.robot
+++ b/tests/functional/Voltha_MultiOLT_Tests.robot
@@ -65,14 +65,14 @@
[Setup] Start Logging MultipleOlt-PhysicalOLTReboot
[Teardown] Run Keywords Collect Logs
... AND Stop Logging MultipleOlt-PhysicalOLTReboot
+ # Execute the test when the number of OLTs are greater than one
+ Pass Execution If ${olt_count} == 1 Skipping test: just one OLT
Run Keyword And Ignore Error Delete All Devices and Verify
# Add OLT device
setup
# Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable
Run Keyword If ${has_dataplane} Clean Up Linux
Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test
- # Execute the test when the number of OLTs are greater than one
- Pass Execution If ${olt_count} == 1 Skipping test: just one OLT
# Reboot the first OLT from the list of olts - rebooting from the OLT CLI
${olt_user}= Get From Dictionary ${list_olts}[0] user
${olt_pass}= Get From Dictionary ${list_olts}[0] pass