From be595ededac0e8310a0d9e0a358f560a76b9ccab Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Fri, 1 May 2020 19:46:49 +0200 Subject: [PATCH] Fix duplicate test in prefix.bats due to bad merge (#1603) The test "prefix for system in /" is duplicated in test/prefix.bats. Both tests are completely identical. This commit removes the duplication. It appears that the culprit is this merge from rbenv/master, from 2016: cf1beda36248be9b0b0ff0913cca03a51d4572e5 With the current development version of bats, this leads to the following error when running `make test`: Error: Duplicate test name(s) in file "/home/travis/build/pyenv/pyenv/test/prefix.bats": test_prefix_for_system_in_-2f Note that the development version is what pyenv's Makefile uses. With the latest release of bats, the duplication only leads to a warning: bats warning: duplicate test name(s) in /src/test/prefix.bats: test_prefix_for_system_in_-2f --- test/prefix.bats | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/prefix.bats b/test/prefix.bats index a1b2dcc6..6f63d1f7 100644 --- a/test/prefix.bats +++ b/test/prefix.bats @@ -36,18 +36,6 @@ OUT rm -f "${BATS_TEST_DIRNAME}/libexec/pyenv-which" } -@test "prefix for system in /" { - mkdir -p "${BATS_TEST_DIRNAME}/libexec" - cat >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" <