@@ -124,12 +124,12 @@ runs:
124124 export PYTORCH_TESTING_DEVICE_ONLY_FOR="xpu"
125125 mkdir -p ut_log/xpu_inductor
126126 cd pytorch
127- for file in "test/inductor"/*.py; do
127+ for file in "test/inductor"/test *.py; do
128128 filename=$(basename "$file")
129129 echo "=== Starting test: $filename ==="
130130 start=$(date +%s)
131- pytest -sv test/inductor/$filename --junit-xml=${{ github.workspace }}/ut_log/inductor_$filename.xml 2>${{ github.workspace }}/ut_log/xpu_inductor/xpu_inductor_$filename_test_error .log | \
132- tee ${{ github.workspace }}/ut_log/xpu_inductor/xpu_inductor_$filename_test .log
131+ pytest -sv test/inductor/$filename --junit-xml=${{ github.workspace }}/ut_log/inductor_$filename.xml 2>${{ github.workspace }}/ut_log/xpu_inductor/xpu_inductor_${filename}_test_error .log | \
132+ tee ${{ github.workspace }}/ut_log/xpu_inductor/xpu_inductor_${filename}_test .log
133133 end=$(date +%s)
134134 echo -e "$filename duration: $((end - start))s"
135135 echo "=== Finished test: $filename ==="
@@ -155,11 +155,11 @@ runs:
155155 export PYTORCH_TESTING_DEVICE_ONLY_FOR="xpu"
156156 mkdir -p ut_log/torch_xpu
157157 cd pytorch
158- for file in "test/xpu"/*.py; do
158+ for file in "test/xpu"/test *.py; do
159159 filename=$(basename "$file")
160160 pytest -sv test/xpu/$filename --junit-xml=${{ github.workspace }}/ut_log/torch_xpu_$filename.xml \
161- 2> ${{ github.workspace }}/ut_log/torch_xpu/torch_xpu_$filename_error .log | \
162- tee ${{ github.workspace }}/ut_log/torch_xpu/torch_xpu_$filename.log
161+ 2> ${{ github.workspace }}/ut_log/torch_xpu/torch_xpu_${filename}_error .log | \
162+ tee ${{ github.workspace }}/ut_log/torch_xpu/torch_xpu_${ filename} .log
163163 done
164164 - name : xpu_profiling
165165 shell : timeout 3600 bash -xe {0}
0 commit comments