Skip to content

Commit 0fa6ee4

Browse files
chuanqi129pytorchmergebot
authored andcommitted
[CI] Skip lib for xpu binary unit test (pytorch#117514)
Skip .so and .a libraries under build/bin/ for test_xpu_bin in CI Pull Request resolved: pytorch#117514 Approved by: https://github.com/malfet
1 parent 13473df commit 0fa6ee4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.ci/pytorch/test.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,8 @@ test_xpu_bin(){
690690
TEST_REPORTS_DIR=$(pwd)/test/test-reports
691691
mkdir -p "$TEST_REPORTS_DIR"
692692

693-
for xpu_case in "${BUILD_BIN_DIR}"/*{xpu,sycl}*
694-
do
695-
if [[ "$xpu_case" != *"*"* ]]; then
693+
for xpu_case in "${BUILD_BIN_DIR}"/*{xpu,sycl}*; do
694+
if [[ "$xpu_case" != *"*"* && "$xpu_case" != *.so && "$xpu_case" != *.a ]]; then
696695
case_name=$(basename "$xpu_case")
697696
echo "Testing ${case_name} ..."
698697
"$xpu_case" --gtest_output=xml:"$TEST_REPORTS_DIR"/"$case_name".xml

0 commit comments

Comments
 (0)