Skip to content

Commit

Permalink
Update vic ci testbed number (#8638)
Browse files Browse the repository at this point in the history
Moving out 1 vic ci testbed for other tests
  • Loading branch information
ading007 committed May 22, 2020
1 parent 50a4495 commit 6729b55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/resources/VCH-Util.robot
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Set Test Environment Variables

@{URLs}= Split String %{TEST_URL_ARRAY}
#${len}= Get Length ${URLs}
# hardcode the TEST_URL_Array number as 3 since the other HAAS servers are taken for other usage
${len}= Set Variable if %{DRONE_BUILD_NUMBER} 3 1
# hardcode the TEST_URL_Array number as 2 since the other HAAS servers are taken for other usage
${len}= Set Variable if %{DRONE_BUILD_NUMBER} 2 1
${IDX}= Evaluate %{DRONE_BUILD_NUMBER} \% ${len}

Run Keyword If %{DRONE_BUILD_NUMBER} Set Environment Variable TEST_URL @{URLs}[${IDX}]
Expand Down
4 changes: 2 additions & 2 deletions tests/wait_until_previous_builds_complete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

unit_test_array=($TEST_URL_ARRAY)
numServers=${#unit_test_array[@]}
#hardcode number as 3, since the other HAAS servers are taken for other usage
numServers=3
#hardcode number as 2, since the other HAAS servers are taken for other usage
numServers=2
DRONE_BUILD_NUMBER=${DRONE_BUILD_NUMBER:=0}
prevBuildNumber=$(( $DRONE_BUILD_NUMBER-$numServers ))
prevBuildStatus=`drone build info --format='{{.Status}}' vmware/vic $prevBuildNumber`
Expand Down

0 comments on commit 6729b55

Please sign in to comment.