Fix wget for google tests in tests (#3414)

CI tests were failing because wget prompts "the user" for a response
whenever the google test archive is already on the disk.

Fix: Use `-nc` option to skip download when the archive already
exists
This commit is contained in:
Philip Hyunsu Cho 2018-06-27 22:12:56 +00:00 committed by GitHub
parent a0a1df1aba
commit e2743548ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ set -e
# Build gtest via cmake
rm -rf gtest
wget https://github.com/google/googletest/archive/release-1.7.0.zip
wget -nc https://github.com/google/googletest/archive/release-1.7.0.zip
unzip release-1.7.0.zip
mv googletest-release-1.7.0 gtest && cd gtest
cmake . && make

View File

@ -116,7 +116,7 @@ fi
if [ ${TASK} == "cmake_test" ]; then
set -e
# Build gtest via cmake
wget https://github.com/google/googletest/archive/release-1.7.0.zip
wget -nc https://github.com/google/googletest/archive/release-1.7.0.zip
unzip release-1.7.0.zip
mv googletest-release-1.7.0 gtest && cd gtest
cmake . && make