chore: Remove useless echos in test/ (#1455)

This commit is contained in:
Edwin Kofler 2023-01-24 23:40:03 -08:00 committed by GitHub
parent 720fd17200
commit f0fe961373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 9 deletions

View File

@ -48,7 +48,6 @@ Details specific for version 1.2.3
EOF
)"
[ "$status" -eq 0 ]
echo "$output"
[ "$output" = "$expected_output" ]
}

View File

@ -189,7 +189,6 @@ teardown() {
cd "$PROJECT_DIR"
run asdf install
echo "$output"
[ "$status" -eq 0 ]
[ "$(cat "$ASDF_DIR/installs/dummy/1.0.0/version")" = "1.0.0" ]
@ -272,7 +271,6 @@ EOM
@test "install_command keeps the download directory when always_keep_download setting is true" {
echo 'always_keep_download = yes' >"$HOME/.asdfrc"
run asdf install dummy 1.1.0
echo "$output"
[ "$status" -eq 0 ]
[ -d "$ASDF_DIR/downloads/dummy/1.1.0" ]
[ "$(cat "$ASDF_DIR/installs/dummy/1.1.0/version")" = "1.1.0" ]
@ -280,7 +278,6 @@ EOM
@test "install_command fails when download script exits with non-zero code" {
run asdf install dummy-broken 1.0.0
echo "$output"
[ "$status" -eq 1 ]
[ ! -d "$ASDF_DIR/downloads/dummy-broken/1.1.0" ]
[ ! -d "$ASDF_DIR/installs/dummy-broken/1.1.0" ]

View File

@ -95,14 +95,12 @@ teardown() {
@test "list_all_command fails when list-all script exits with non-zero code" {
run asdf list-all dummy-broken
echo "$output"
[ "$status" -eq 1 ]
[[ "$output" == "Plugin dummy-broken's list-all callback script failed with output:"* ]]
}
@test "list_all_command displays stderr then stdout when failing" {
run asdf list-all dummy-broken
echo "$output"
[[ "$output" == *"List-all failed!"* ]]
[[ "$output" == *"Attempting to list versions" ]]
}

View File

@ -443,7 +443,6 @@ EOM
run asdf install
run asdf exec dummy world hello
echo "$output"
[ "$output" = "This is Dummy 1.0! hello world" ]
[ "$status" -eq 0 ]
}

View File

@ -100,6 +100,5 @@ EOM
run asdf install dummy 1.0.0
run asdf uninstall dummy 1.0.0
echo "$output"
[ "$output" = "removed dummy 1.0.0" ]
}

View File

@ -184,7 +184,6 @@ teardown() {
run find_versions "dummy" "$PROJECT_DIR"
[ "$status" -eq 0 ]
echo "$output"
[ "$output" = "0.2.0|ASDF_DUMMY_VERSION environment variable" ]
}