diff --git a/.ci/pytorch/test.sh b/.ci/pytorch/test.sh index 3dc48d08c596d3..09ddde059a138c 100755 --- a/.ci/pytorch/test.sh +++ b/.ci/pytorch/test.sh @@ -690,9 +690,8 @@ test_xpu_bin(){ TEST_REPORTS_DIR=$(pwd)/test/test-reports mkdir -p "$TEST_REPORTS_DIR" - for xpu_case in "${BUILD_BIN_DIR}"/*{xpu,sycl}* - do - if [[ "$xpu_case" != *"*"* ]]; then + for xpu_case in "${BUILD_BIN_DIR}"/*{xpu,sycl}*; do + if [[ "$xpu_case" != *"*"* && "$xpu_case" != *.so && "$xpu_case" != *.a ]]; then case_name=$(basename "$xpu_case") echo "Testing ${case_name} ..." "$xpu_case" --gtest_output=xml:"$TEST_REPORTS_DIR"/"$case_name".xml