Explorar el Código

Rewrite with using here document syntax

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

+ 4
- 3
test/prefix.bats Ver fichero

@ -26,9 +26,10 @@ load test_helper
@test "prefix for system in /" {
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
{ echo "#!/bin/sh"
echo "echo /bin/python"
} >"${BATS_TEST_DIRNAME}/libexec/pyenv-which"
cat >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" <<OUT
#!/bin/sh
echo /bin/python
OUT
chmod +x "${BATS_TEST_DIRNAME}/libexec/pyenv-which"
PYENV_VERSION="system" run pyenv-prefix
assert_success "/"

Cargando…
Cancelar
Guardar