Skip to content

Commit

Permalink
[CI] Skip lib for xpu binary unit test (pytorch#117514)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chuanqi129 authored and pytorchmergebot committed Jan 16, 2024
1 parent 13473df commit 0fa6ee4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .ci/pytorch/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fa6ee4

Please sign in to comment.