Skip to content

Commit 100aa07

Browse files
bddppqfacebook-github-bot
authored andcommitted
Bring back running pytorch tests in rocm CI
Summary: Pull Request resolved: pytorch#16829 Differential Revision: D13982323 Pulled By: bddppq fbshipit-source-id: 6ffadb96b9e2ebd64a29e38674a51401dfb211db
1 parent f34192d commit 100aa07

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.jenkins/pytorch/test.sh

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -188,27 +188,22 @@ test_xla() {
188188
assert_git_not_dirty
189189
}
190190

191-
if [ -z "${BUILD_ENVIRONMENT}" ] || [[ "${BUILD_ENVIRONMENT}" == *-test ]]; then
192-
if [[ "${BUILD_ENVIRONMENT}" == *xla* ]]; then
193-
test_torchvision
194-
test_xla
195-
else
196-
test_torchvision
197-
test_python_nn
198-
test_python_all_except_nn
199-
test_aten
200-
test_libtorch
201-
test_custom_script_ops
202-
fi
191+
if [[ "${BUILD_ENVIRONMENT}" == *xla* ]]; then
192+
test_torchvision
193+
test_xla
194+
elif [[ "${BUILD_ENVIRONMENT}" == *-test1 ]]; then
195+
test_torchvision
196+
test_python_nn
197+
elif [[ "${BUILD_ENVIRONMENT}" == *-test2 ]]; then
198+
test_python_all_except_nn
199+
test_aten
200+
test_libtorch
201+
test_custom_script_ops
203202
else
204-
if [[ "${BUILD_ENVIRONMENT}" == *-test1 ]]; then
205-
test_torchvision
206-
test_python_nn
207-
elif [[ "${BUILD_ENVIRONMENT}" == *-test2 ]]; then
208-
test_torchvision
209-
test_python_all_except_nn
210-
test_aten
211-
test_libtorch
212-
test_custom_script_ops
213-
fi
203+
test_torchvision
204+
test_python_nn
205+
test_python_all_except_nn
206+
test_aten
207+
test_libtorch
208+
test_custom_script_ops
214209
fi

0 commit comments

Comments
 (0)