diff --git a/plugins/python-build/test/checksum.bats b/plugins/python-build/test/checksum.bats index f80d5ae2..62d46312 100644 --- a/plugins/python-build/test/checksum.bats +++ b/plugins/python-build/test/checksum.bats @@ -103,7 +103,6 @@ export PYTHON_BUILD_CACHE_PATH= @test "existing tarball in build location is reused" { stub shasum true "echo ba988b1bb4250dee0b9dd3d4d722f9c64b2bacfc805d1b6eba7426bda72dd3c5" stub curl false - stub curl false stub wget false export -n PYTHON_BUILD_CACHE_PATH diff --git a/plugins/python-build/test/fetch.bats b/plugins/python-build/test/fetch.bats index a2a41759..c412f6a5 100644 --- a/plugins/python-build/test/fetch.bats +++ b/plugins/python-build/test/fetch.bats @@ -20,7 +20,7 @@ setup() { @test "using aria2c if available" { export PYTHON_BUILD_ARIA2_OPTS= - export PYTHON_BUILD_HTTP_CLIENT="aria2c" + export -n PYTHON_BUILD_HTTP_CLIENT stub aria2c "--allow-overwrite=true --no-conf=true -o * http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$4" install_fixture definitions/without-checksum diff --git a/plugins/python-build/test/test_helper.bash b/plugins/python-build/test/test_helper.bash index f959dd19..a9c775df 100644 --- a/plugins/python-build/test/test_helper.bash +++ b/plugins/python-build/test/test_helper.bash @@ -1,11 +1,14 @@ export TMP="$BATS_TEST_DIRNAME/tmp" -export RUBY_BUILD_CURL_OPTS= -export RUBY_BUILD_HTTP_CLIENT="curl" +export PYTHON_BUILD_CURL_OPTS= +export PYTHON_BUILD_HTTP_CLIENT="curl" if [ "$FIXTURE_ROOT" != "$BATS_TEST_DIRNAME/fixtures" ]; then export FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures" export INSTALL_ROOT="$TMP/install" - PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" + PATH="/usr/bin:/bin:/usr/sbin:/sbin" + if [ "FreeBSD" = "$(uname -s)" ]; then + PATH="/usr/local/bin:$PATH" + fi PATH="$BATS_TEST_DIRNAME/../bin:$PATH" PATH="$TMP/bin:$PATH" export PATH