Skip to content

Commit

Permalink
Adding the correct waitforsut directive
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Jan 1, 2025
1 parent d02fee9 commit 31b1a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion retorchfiles/configurations/retorchCI.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
agentCIName=xretorch-agent
sut-wait-html=<div class="esh-catalog-item col-md-4">
sut-wait-html=<div class=\"esh-catalog-item col-md-4\">
sut-location=$WORKSPACE/sut/src
docker-frontend-name=http://webmvc_
docker-frontend-port=80
Expand Down
2 changes: 1 addition & 1 deletion retorchfiles/scripts/waitforSUT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DOCKER_HOST_IP=$(/sbin/ip route | awk '/default/ { print $3 }')
COUNTER=0
WAIT_LIMIT=40

while ! curl --insecure -s "http://webmvc_$1:80" | grep -q "<div class="esh-catalog-item col-md-4">"; do
while ! curl --insecure -s "http://webmvc_$1:80" | grep -q "<div class=\"esh-catalog-item col-md-4\">"; do
"$SCRIPTS_FOLDER/printLog.sh" "DEBUG" "TJob-$1-set-up" "Waiting $COUNTER seconds for $1 with URL http://webmvc_$1:80"
sleep 5
((COUNTER++))
Expand Down

0 comments on commit 31b1a4c

Please sign in to comment.