From: peter Date: Thu, 14 Mar 2019 17:05:04 +0000 (-0700) Subject: Simplify env creation when running Windows tests (#17916) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~814 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bba906c2cb166c4c303989383ba814c6392543b9;p=platform%2Fupstream%2Fpytorch.git Simplify env creation when running Windows tests (#17916) Summary: Fixes https://github.com/pytorch/pytorch/issues/13465. Pull Request resolved: https://github.com/pytorch/pytorch/pull/17916 Differential Revision: D14460589 Pulled By: soumith fbshipit-source-id: e952d08648b833cfd4a8551355ecd68045fea25c --- diff --git a/.jenkins/pytorch/win-test.sh b/.jenkins/pytorch/win-test.sh index 51a3de8..330a956 100755 --- a/.jenkins/pytorch/win-test.sh +++ b/.jenkins/pytorch/win-test.sh @@ -13,6 +13,10 @@ export TMP_DIR_WIN=$(cygpath -w "${TMP_DIR}") mkdir -p $TMP_DIR/ci_scripts/ mkdir -p $TMP_DIR/build/torch +if [ ! -z "$(ls $TMP_DIR/ci_scripts/*)" ]; then + rm $TMP_DIR/ci_scripts/* +fi + cat >$TMP_DIR/ci_scripts/download_image.py << EOL import os @@ -39,6 +43,11 @@ EOL cat >$TMP_DIR/ci_scripts/setup_pytorch_env.bat <> %TMP_DIR%/ci_scripts/pytorch_env_restore.bat + EOL cat >$TMP_DIR/ci_scripts/test_python_nn.bat <