From 4e993eb5e73e0868a6254ce3e9d47fdd936bbda9 Mon Sep 17 00:00:00 2001 From: "xianyan.xianyanjia" Date: Fri, 30 Aug 2024 11:21:18 +0800 Subject: [PATCH] fix bash --- tests/run_tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 79654016..0a76fb44 100644 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,5 +1,4 @@ #!/bin/bash -#set -exo pipefail export PYTHONPATH=$(cd ../ && pwd):${PWD}:${PYTHONPATH} CDIR="$(cd "$(dirname "$0")" ; pwd -P)" LOGFILE=/tmp/pytorch_py_test.log @@ -45,7 +44,7 @@ function run_test { rm -rf core* ray stop "$@" - if [ $? -eq 0 ]; then + if [[ $? -eq 0 ]]; then echo "$@ success" break fi