From 1b35cfaa2cc0e9ad73c69bd40e27201b40230e0f Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 3 Aug 2016 01:34:42 +0000 Subject: [PATCH] 1) Remove useless `touch` 2) Add explicit shebang line to executable for testing --- test/prefix.bats | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/prefix.bats b/test/prefix.bats index c0f73627..94f7739b 100644 --- a/test/prefix.bats +++ b/test/prefix.bats @@ -26,8 +26,9 @@ load test_helper @test "prefix for system in /" { mkdir -p "${BATS_TEST_DIRNAME}/libexec" - touch "${BATS_TEST_DIRNAME}/libexec/pyenv-which" - echo "echo /bin/python" >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" + { echo "#!/bin/sh" + echo "echo /bin/python" + } >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" chmod +x "${BATS_TEST_DIRNAME}/libexec/pyenv-which" PYENV_VERSION="system" run pyenv-prefix assert_success "/"