Skip to content

Commit 9bb2d25

Browse files
committed
unset http_proxy when download bos file on windows
1 parent e235515 commit 9bb2d25

File tree

1 file changed

+2
-2
lines changed
  • paddle/fluid/inference/tests/infer_ut

1 file changed

+2
-2
lines changed

paddle/fluid/inference/tests/infer_ut/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function download() {
5959
echo "${model_name}.tgz has been downloaded."
6060
else
6161
if [ $WIN_DETECT != "" ]; then
62-
wget -q ${url_prefix}/${model_name}.tgz
62+
wget -q -Y off ${url_prefix}/${model_name}.tgz
6363
tar xzf *.tgz
6464
else
6565
wget -q --no-proxy ${url_prefix}/${model_name}.tgz
@@ -123,7 +123,7 @@ function compile_test() {
123123
-DWITH_GTEST=ON \
124124
-DCMAKE_CXX_FLAGS='/std:c++17' \
125125
-DCMAKE_BUILD_TYPE=Release
126-
msbuild /maxcpucount /property:Configuration=Release ALL_BUILD.vcxproj;
126+
msbuild /maxcpucount /property:Configuration=Release ALL_BUILD.vcxproj
127127
else
128128
cmake .. -DPADDLE_LIB=${inference_install_dir} \
129129
-DWITH_MKL=$TURN_ON_MKL \

0 commit comments

Comments
 (0)