Skip to content

Commit

Permalink
Just suppress darwin tests for unsupported darwin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Zordrak committed Dec 19, 2023
1 parent 6f3d636 commit 146808d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/test_install_and_use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,23 @@ tests__kv=(
"$(tfenv list-remote | grep 'rc' | head -n 1),latest:rc"
"$(tfenv list-remote | grep '^0\.11\.' | head -n 1),latest:^0.11."
'0.11.15-oci,0.11.15-oci'
'0.8.8,latest:^0.8'
'0.7.13,0.7.13'
'1.3.10,latest:^1\.3'
'1.6.3,1.6.3'
'0.14.6,v0.14.6'
);

if [ "$(uname -s)" != Darwin* ]; then
tests__desc+=(
'legacy latest version matching regex'
'legacy specific version'
);

tests__kv+=(
'0.8.8,latest:^0.8'
'0.7.13,0.7.13'
);
fi;

tests_count=${#tests__desc[@]};

declare desc kv k v test_num;
Expand Down

0 comments on commit 146808d

Please sign in to comment.