Skip to content

Commit 2b14c63

Browse files
authored
Fix waring. (#504)
Signed-off-by: zepan <ze.pan@intel.com>
1 parent 8eb8b6a commit 2b14c63

34 files changed

+43
-43
lines changed

tests/test_agent_langchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function build_docker_images() {
1313
cd $WORKPATH
1414
echo $WORKPATH
1515
docker build --no-cache -t opea/comps-agent-langchain:comps -f comps/agent/langchain/docker/Dockerfile .
16-
if $? ; then
16+
if [ $? -ne 0 ]; then
1717
echo "opea/comps-agent-langchain built fail"
1818
exit 1
1919
else

tests/test_asr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ function build_docker_images() {
1111
cd $WORKPATH
1212
echo $(pwd)
1313
docker build --no-cache -t opea/whisper:comps -f comps/asr/whisper/Dockerfile .
14-
if $? ; then
14+
if [ $? -ne 0 ]; then
1515
echo "opea/whisper built fail"
1616
exit 1
1717
else
1818
echo "opea/whisper built successful"
1919
fi
2020
docker build --no-cache -t opea/asr:comps -f comps/asr/Dockerfile .
21-
if $? ; then
21+
if [ $? -ne 0 ]; then
2222
echo "opea/asr built fail"
2323
exit 1
2424
else

tests/test_chathistory_mongo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function build_docker_images() {
1818
docker run -d -p 27017:27017 --name=test-comps-mongo mongo:latest
1919

2020
docker build --no-cache -t opea/chathistory-mongo-server:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/chathistory/mongo/docker/Dockerfile .
21-
if $? ; then
21+
if [ $? -ne 0 ]; then
2222
echo "opea/chathistory-mongo-server built fail"
2323
exit 1
2424
else

tests/test_dataprep_milvus.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ function build_docker_images() {
1313
echo $(pwd)
1414
# langchain mosec embedding image
1515
docker build --no-cache -t opea/langchain-mosec:comps --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -f comps/embeddings/langchain-mosec/mosec-docker/Dockerfile .
16-
if $? ; then
16+
if [ $? -ne 0 ]; then
1717
echo "opea/langchain-mosec built fail"
1818
exit 1
1919
else
2020
echo "opea/langchain-mosec built successful"
2121
fi
2222
# dataprep milvus image
2323
docker build --no-cache -t opea/dataprep-milvus:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/milvus/docker/Dockerfile .
24-
if $? ; then
24+
if [ $? -ne 0 ]; then
2525
echo "opea/dataprep-milvus built fail"
2626
exit 1
2727
else

tests/test_dataprep_pgvector.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function build_docker_images() {
1717

1818
# build dataprep image for pgvector
1919
docker build --no-cache -t opea/dataprep-pgvector:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pgvector/langchain/docker/Dockerfile .
20-
if $? ; then
20+
if [ $? -ne 0 ]; then
2121
echo "opea/dataprep-pgvector built fail"
2222
exit 1
2323
else

tests/test_dataprep_pinecone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function build_docker_images() {
1111

1212
# build dataprep image for pinecone
1313
docker build --no-cache -t opea/dataprep-pinecone:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f $WORKPATH/comps/dataprep/pinecone/docker/Dockerfile .
14-
if $? ; then
14+
if [ $? -ne 0 ]; then
1515
echo "opea/dataprep-pinecone built fail"
1616
exit 1
1717
else

tests/test_dataprep_qdrant_langchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function build_docker_images() {
1313

1414
# dataprep qdrant image
1515
docker build --no-cache -t opea/dataprep-qdrant:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/qdrant/docker/Dockerfile .
16-
if $? ; then
16+
if [ $? -ne 0 ]; then
1717
echo "opea/dataprep-qdrant built fail"
1818
exit 1
1919
else

tests/test_dataprep_redis_langchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function build_docker_images() {
1212
cd $WORKPATH
1313
echo $(pwd)
1414
docker build --no-cache -t opea/dataprep-redis:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain/docker/Dockerfile .
15-
if $? ; then
15+
if [ $? -ne 0 ]; then
1616
echo "opea/dataprep-redis built fail"
1717
exit 1
1818
else

tests/test_dataprep_redis_langchain_ray.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function build_docker_images() {
1212
echo "Building the docker images"
1313
cd $WORKPATH
1414
docker build --no-cache -t opea/dataprep-on-ray-redis:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/langchain_ray/docker/Dockerfile .
15-
if $? ; then
15+
if [ $? -ne 0 ]; then
1616
echo "opea/dataprep-on-ray-redis built fail"
1717
exit 1
1818
else

tests/test_dataprep_redis_llama_index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function build_docker_images() {
1212
cd $WORKPATH
1313
echo $(pwd)
1414
docker build --no-cache -t opea/dataprep-redis-llama-index:comps --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/redis/llama_index/docker/Dockerfile .
15-
if $? ; then
15+
if [ $? -ne 0 ]; then
1616
echo "opea/dataprep-redis-llama-index built fail"
1717
exit 1
1818
else

0 commit comments

Comments
 (0)