Quellcode durchsuchen

Adapt tests involving current directory for Docker

In Docker CI tests, the default current dir is read-only
master
Ivan Pozdeev vor 15 Stunden
Ursprung
Commit
74c6efe2f4
7 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. +1
    -1
      test/global.bats
  2. +1
    -1
      test/local.bats
  3. +1
    -1
      test/prefix.bats
  4. +1
    -1
      test/version-name.bats
  5. +1
    -1
      test/version.bats
  6. +1
    -1
      test/versions.bats
  7. +1
    -1
      test/which.bats

+ 1
- 1
test/global.bats Datei anzeigen

@ -17,7 +17,7 @@ load test_helper
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
mkdir -p "$PYENV_ROOT"
echo "[1-9].?*" > "$PYENV_ROOT/version"
run pyenv-global

+ 1
- 1
test/local.bats Datei anzeigen

@ -20,7 +20,7 @@ _setup() {
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
echo "[1-9].?*" > .python-version
run pyenv-local
assert_success "[1-9].?*"

+ 1
- 1
test/prefix.bats Datei anzeigen

@ -17,7 +17,7 @@ load test_helper
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-prefix
assert_failure "pyenv: version \`[1-9].?*' not installed"
}

+ 1
- 1
test/version-name.bats Datei anzeigen

@ -23,7 +23,7 @@ _setup() {
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-version-name
assert_failure <<'!'
pyenv: version `[1-9].?*' is not installed (set by PYENV_VERSION environment variable)

+ 1
- 1
test/version.bats Datei anzeigen

@ -81,7 +81,7 @@ OUT
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-version
assert_failure
assert_output <<OUT

+ 1
- 1
test/versions.bats Datei anzeigen

@ -66,7 +66,7 @@ OUT
@test "version with glob characters is handled correctly" {
stub_system_python
create_version "[1-9].?*"
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
run pyenv-versions
assert_success
assert_output <<OUT

+ 1
- 1
test/which.bats Datei anzeigen

@ -92,7 +92,7 @@ OUT
@test "version with glob characters is handled correctly" {
bats_require_minimum_version 1.5.0
touch 1.1
cd "$BATS_TEST_TMPDIR"; touch 1.1
PATH="$(path_without foo)" PYENV_VERSION="[1-9].?*" run -127 pyenv-which foo
assert_failure
assert_output <<!

Laden…
Abbrechen
Speichern