Skip to content

Commit 6fbdc5e

Browse files
authored
Fix string comparison in HybridRAG test script (#2004)
Signed-off-by: Abolfazl Shahbazi <12436063+ashahba@users.noreply.github.com>
1 parent 00f76ea commit 6fbdc5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

HybridRAG/tests/test_compose_on_gaudi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function validate_service() {
7979

8080
local HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST -d "$INPUT_DATA" -H 'Content-Type: application/json' "$URL")
8181

82-
if [ "$DOCKER_NAME" == "text2cypher-gaudi-container" ]; then
82+
if [ "$DOCKER_NAME" = "text2cypher-gaudi-container" ]; then
8383
docker ps
8484
docker logs text2cypher-gaudi-container
8585
fi
@@ -94,7 +94,7 @@ function validate_service() {
9494
else
9595
echo "[ $SERVICE_NAME ] Content does not match the expected result: $CONTENT"
9696
docker logs ${DOCKER_NAME} >> ${LOG_PATH}/${SERVICE_NAME}.log
97-
if [ "$DOCKER_NAME" == "hybridrag-xeon-backend-server" ]; then
97+
if [ "$DOCKER_NAME" = "hybridrag-xeon-backend-server" ]; then
9898
docker ps
9999
docker logs text2cypher-gaudi-container
100100
fi
@@ -103,7 +103,7 @@ function validate_service() {
103103
else
104104
echo "[ $SERVICE_NAME ] HTTP status is not 200. Received status was $HTTP_STATUS"
105105
docker logs ${DOCKER_NAME} >> ${LOG_PATH}/${SERVICE_NAME}.log
106-
if [ "$DOCKER_NAME" == "hybridrag-xeon-backend-server" ]; then
106+
if [ "$DOCKER_NAME" = "hybridrag-xeon-backend-server" ]; then
107107
docker ps
108108
docker logs text2cypher-gaudi-container
109109
fi

0 commit comments

Comments
 (0)