mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
fix silent failure on Windows builds (#16984)
Summary: Closes #16983 Remove backticks that are being interpreted by the shell. Add -e option to bash script to avoid future such failures Pull Request resolved: https://github.com/pytorch/pytorch/pull/16984 Reviewed By: yf225 Differential Revision: D14039128 Pulled By: kostmo fbshipit-source-id: c31a1895377ca86c1b59e79351843cc8c4fd7de3
This commit is contained in:
committed by
Facebook Github Bot
parent
3618b52c74
commit
a2c322e735
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
COMPACT_JOB_NAME=pytorch-win-ws2016-cuda9-cudnn7-py3-test
|
||||
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
|
||||
@ -75,7 +75,7 @@ set PYTHONPATH=%TMP_DIR_WIN%\\build;%PYTHONPATH%
|
||||
if NOT "%BUILD_ENVIRONMENT%"=="" (
|
||||
cd %TMP_DIR_WIN%\\build
|
||||
python %TMP_DIR_WIN%\\ci_scripts\\download_image.py %TMP_DIR_WIN%\\%IMAGE_COMMIT_TAG%.7z
|
||||
:: 7z: `-aos` skips if exists because this .bat can be called multiple times
|
||||
:: 7z: -aos skips if exists because this .bat can be called multiple times
|
||||
7z x %TMP_DIR_WIN%\\%IMAGE_COMMIT_TAG%.7z -aos
|
||||
cd %WORKING_DIR%
|
||||
) else (
|
||||
|
Reference in New Issue
Block a user