mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
chore: Remove useless echo
s in test/ (#1455)
This commit is contained in:
parent
720fd17200
commit
f0fe961373
@ -48,7 +48,6 @@ Details specific for version 1.2.3
|
||||
EOF
|
||||
)"
|
||||
[ "$status" -eq 0 ]
|
||||
echo "$output"
|
||||
[ "$output" = "$expected_output" ]
|
||||
}
|
||||
|
||||
|
@ -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" ]
|
||||
|
@ -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" ]]
|
||||
}
|
||||
|
@ -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 ]
|
||||
}
|
||||
|
@ -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" ]
|
||||
}
|
||||
|
@ -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" ]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user