Explorar el Código

1) Remove useless `touch` 2) Add explicit shebang line to executable for testing

pull/661/head
Yamashita, Yuu hace 10 años
padre
commit
1b35cfaa2c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      test/prefix.bats

+ 3
- 2
test/prefix.bats Ver fichero

@ -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 "/"

Cargando…
Cancelar
Guardar