Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix ShellCheck errors in tests #1433

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented Jan 16, 2023

Summary

This PR is the first of a multi-part series that fixes various issues with the tests. I broke this change up as to be easier to review, and it seemed similar to #1349, in which different PRs were preferred over a single larger one.

Here is a description of each commit/part:

At the end of the commit series, some lints were disabled:

  • Codes SC2031 and SC2030, and SC2164 were disabled as being false positives, due to the Bats environment taking care of that for us.
  • SC2012 was also disabled at the top of test/reshim_command.bats since I wanted to be sure not to break any tests and the conversion to find isn't as trivial as the other fixes - it can be fixed later.

Partially addresses #1396

@hyperupcall hyperupcall requested a review from a team as a code owner January 16, 2023 05:15
@hyperupcall hyperupcall changed the title test: Fix ShellCheck errors (part 1) chore: Fix ShellCheck errors (part 1) Jan 16, 2023
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
Copy link
Contributor

@jthegedus jthegedus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pressed the wrong button 😫

Copy link
Contributor

@jthegedus jthegedus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments for requested changes.

I will approve & merge afterwards, cheers!

I know this is a slow process, sorry @hyperupcall your help is appreciated 🙏

@hyperupcall hyperupcall force-pushed the test-shellcheck-1 branch 2 times, most recently from 8dc86c9 to aef5eb3 Compare January 22, 2023 08:07
@hyperupcall
Copy link
Contributor Author

Rebased over master 👍

Copy link
Contributor

@jthegedus jthegedus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the changes!

@jthegedus jthegedus changed the title chore: Fix ShellCheck errors (part 1) chore: fix ShellCheck errors in tests Jan 22, 2023
@jthegedus jthegedus merged commit 407a669 into asdf-vm:master Jan 22, 2023
@jthegedus
Copy link
Contributor

On to the next!

@hyperupcall
Copy link
Contributor Author

woot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants