Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
chore: Remove useless echos in test/ (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Jan 25, 2023
1 parent 720fd17 commit f0fe961
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion test/help_command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Details specific for version 1.2.3
EOF
)"
[ "$status" -eq 0 ]
echo "$output"
[ "$output" = "$expected_output" ]
}

Expand Down
3 changes: 0 additions & 3 deletions test/install_command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down Expand Up @@ -272,15 +271,13 @@ 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" ]
}

@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" ]
Expand Down
2 changes: 0 additions & 2 deletions test/list_command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
}
Expand Down
1 change: 0 additions & 1 deletion test/shim_exec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
1 change: 0 additions & 1 deletion test/uninstall_command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}
1 change: 0 additions & 1 deletion test/utils.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}

Expand Down

0 comments on commit f0fe961

Please sign in to comment.