1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 12:33:48 -05:00

Refactor test code of python-build. Use curl during tests by default

This commit is contained in:
Yamashita, Yuu
2018-04-26 02:06:57 +00:00
parent 098fb9f07a
commit b3ba0fd7e3
7 changed files with 3 additions and 10 deletions

View File

@@ -3,8 +3,6 @@
load test_helper
export PYTHON_BUILD_SKIP_MIRROR=1
export PYTHON_BUILD_CACHE_PATH=
export PYTHON_BUILD_ARIA2_OPTS=
export PYTHON_BUILD_HTTP_CLIENT="curl"
setup() {
export PYTHON_BUILD_BUILD_PATH="${TMP}/source"
@@ -21,6 +19,7 @@ setup() {
}
@test "using aria2c if available" {
export PYTHON_BUILD_ARIA2_OPTS=
export PYTHON_BUILD_HTTP_CLIENT="aria2c"
stub aria2c "--allow-overwrite=true --no-conf=true -o * http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$4"