@@ -11,6 +11,10 @@ parameters:
1111 default : $(roce_iface)
1212- name : initial_delay
1313 default : 20
14+ - name : server_num_paths
15+ default : ' auto'
16+ - name : client_num_paths
17+ default : ' auto'
1418- name : analyzer_allow_list_args
1519 default : ' '
1620
@@ -22,6 +26,12 @@ steps:
2226 condition : always()
2327 timeoutInMinutes : 2
2428
29+ - bash : |
30+ set -eEX
31+ echo "##vso[task.setvariable variable=server_num_paths]${{ parameters.server_num_paths}}"
32+ echo "##vso[task.setvariable variable=client_num_paths]${{ parameters.client_num_paths}}"
33+ displayName : Set path number variable value
34+
2535- bash : |
2636 set -eEx
2737 source $(workspace)/buildlib/az-helpers.sh
4252 azure_set_variable "corrupter_pid" "$corrupter_pid"
4353 displayName : Start network corrupter
4454 timeoutInMinutes : 2
55+ condition : and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto'))
4556
4657- bash : |
4758 set -eEx
7283 ${{ parameters.iodemo_args }}
7384 displayName : Launch with run_io_demo.sh ( ${{ parameters.name }} )
7485 timeoutInMinutes : 15
86+ condition : and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto'))
7587
7688- bash : |
7789 set -eEx
@@ -96,12 +108,12 @@ steps:
96108 fi
97109 cat corrupter.log
98110 displayName : Kill corrupter
99- condition : always( )
111+ condition : and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto') )
100112 timeoutInMinutes : 2
101113
102114- bash : |
103115 set -eEx
104116 $(workspace)/buildlib/az-network-corrupter.sh reset=yes interface=${{ parameters.roce_iface }}
105117 displayName : Restore port state
106- condition : always( )
118+ condition : and(eq(variables['server_num_paths'], 'auto'), eq(variables['client_num_paths'], 'auto') )
107119 timeoutInMinutes : 2
0 commit comments