Skip to content

Fix string comparison in HybridRAG test script #2004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
6 changes: 3 additions & 3 deletions HybridRAG/tests/test_compose_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function validate_service() {

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

if [ "$DOCKER_NAME" == "text2cypher-gaudi-container" ]; then
if [ "$DOCKER_NAME" = "text2cypher-gaudi-container" ]; then
docker ps
docker logs text2cypher-gaudi-container
fi
Expand All @@ -94,7 +94,7 @@ function validate_service() {
else
echo "[ $SERVICE_NAME ] Content does not match the expected result: $CONTENT"
docker logs ${DOCKER_NAME} >> ${LOG_PATH}/${SERVICE_NAME}.log
if [ "$DOCKER_NAME" == "hybridrag-xeon-backend-server" ]; then
if [ "$DOCKER_NAME" = "hybridrag-xeon-backend-server" ]; then
docker ps
docker logs text2cypher-gaudi-container
fi
Expand All @@ -103,7 +103,7 @@ function validate_service() {
else
echo "[ $SERVICE_NAME ] HTTP status is not 200. Received status was $HTTP_STATUS"
docker logs ${DOCKER_NAME} >> ${LOG_PATH}/${SERVICE_NAME}.log
if [ "$DOCKER_NAME" == "hybridrag-xeon-backend-server" ]; then
if [ "$DOCKER_NAME" = "hybridrag-xeon-backend-server" ]; then
docker ps
docker logs text2cypher-gaudi-container
fi
Expand Down
Loading