1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 12:33:48 -05:00
This commit is contained in:
Yamashita, Yuu
2017-03-06 04:31:25 +00:00
parent 3d36ee7227
commit d01fa09a7d
7 changed files with 17 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ static_version="$(grep VERSION "$bats_bin" | head -1 | cut -d'"' -f 2)"
@test "python-build git version" {
stub git \
'remote -v : echo origin https://github.com/yyuu/pyenv.git' \
'remote -v : echo origin https://github.com/pyenv/pyenv.git' \
"describe --tags HEAD : echo v1984-12-gSHA"
run python-build --version
assert_success "python-build 1984-12-gSHA"
@@ -23,7 +23,7 @@ static_version="$(grep VERSION "$bats_bin" | head -1 | cut -d'"' -f 2)"
@test "git describe fails" {
stub git \
'remote -v : echo origin https://github.com/yyuu/pyenv.git' \
'remote -v : echo origin https://github.com/pyenv/pyenv.git' \
"describe --tags HEAD : echo ASPLODE >&2; exit 1"
run python-build --version
assert_success "python-build ${static_version}"