Commit f085feb8 by Mislav Marohnić Committed by GitHub

Merge pull request #979 from jasonkarns/test-setup-cleanup

Remove suite-wide setup
parents f666e716 21494ba3
...@@ -5,6 +5,10 @@ export RUBY_BUILD_SKIP_MIRROR=1 ...@@ -5,6 +5,10 @@ export RUBY_BUILD_SKIP_MIRROR=1
export RUBY_BUILD_CACHE_PATH= export RUBY_BUILD_CACHE_PATH=
export RUBY_BUILD_CURL_OPTS= export RUBY_BUILD_CURL_OPTS=
setup() {
ensure_not_found_in_path aria2c
}
@test "package URL without checksum" { @test "package URL without checksum" {
stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3" stub curl "-q -o * -*S* http://example.com/* : cp $FIXTURE_ROOT/\${5##*/} \$3"
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
load test_helper load test_helper
setup() { setup() {
ensure_not_found_in_path aria2c
export RBENV_ROOT="${TMP}/rbenv" export RBENV_ROOT="${TMP}/rbenv"
export HOOK_PATH="${TMP}/i has hooks" export HOOK_PATH="${TMP}/i has hooks"
mkdir -p "$HOOK_PATH" mkdir -p "$HOOK_PATH"
......
...@@ -6,6 +6,10 @@ export RUBY_BUILD_CACHE_PATH= ...@@ -6,6 +6,10 @@ export RUBY_BUILD_CACHE_PATH=
export RUBY_BUILD_MIRROR_URL=http://mirror.example.com export RUBY_BUILD_MIRROR_URL=http://mirror.example.com
export RUBY_BUILD_CURL_OPTS= export RUBY_BUILD_CURL_OPTS=
setup() {
ensure_not_found_in_path aria2c
}
@test "package URL without checksum bypasses mirror" { @test "package URL without checksum bypasses mirror" {
stub shasum true stub shasum true
......
...@@ -4,7 +4,6 @@ load test_helper ...@@ -4,7 +4,6 @@ load test_helper
export RBENV_ROOT="${TMP}/rbenv" export RBENV_ROOT="${TMP}/rbenv"
setup() { setup() {
ensure_not_found_in_path aria2c
stub rbenv-hooks 'install : true' stub rbenv-hooks 'install : true'
stub rbenv-rehash 'true' stub rbenv-rehash 'true'
} }
......
...@@ -38,10 +38,6 @@ ensure_not_found_in_path() { ...@@ -38,10 +38,6 @@ ensure_not_found_in_path() {
done done
} }
setup() {
ensure_not_found_in_path aria2c
}
teardown() { teardown() {
rm -fr "${TMP:?}"/* rm -fr "${TMP:?}"/*
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment