mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Rewrite with using here document syntax
This commit is contained in:
parent
1b35cfaa2c
commit
93ece2ac16
1 changed files with 4 additions and 3 deletions
|
@ -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 "/"
|
||||
|
|
Loading…
Reference in a new issue