Skip to content

Conversation

@antonio-gg-dev
Copy link
Member

@antonio-gg-dev antonio-gg-dev commented Nov 17, 2023

📚 Description

Closes #143

🔖 Changes

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes
@Chemaclass Chemaclass changed the title Feat/upgrade option Upgrade option Nov 17, 2023
@antonio-gg-dev
Copy link
Member Author

@gpuligundla We have already made the changes we told you about to your contribution, we have made some small changes in the implementation and improved the tests

Thank you again for help us!

Co-authored-by: Antonio Gonzalez Gea <katarn@katarn.es>
./bin/bashunit

if [[ $_OS == "OSX" ]]; then
rm ./bin/bashunit-e
Copy link
Collaborator

Choose a reason for hiding this comment

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

./bin/bashunit-e, is that correct?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it's correct. This is because sed behaves a it different in macOS than others.
Concretely, the option -e is used for regex in linux; while in macOS it's not needed and then it's appending -e to the file: therefore it generates a new file named 'bashunit-e' 🤣
To keep it simple, @Tito-Kati and I decided simply rm that file and we are good to go.


function test_do_not_update_on_consecutive_calls() {
todo "enable this test when --upgrade is released"
# sed -i -e \
Copy link
Collaborator

Choose a reason for hiding this comment

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

👀

Copy link
Member

Choose a reason for hiding this comment

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

yes, this is intentional, we will uncomment this (and enable this test) once we have --upgrade released in the next version.

@Chemaclass Chemaclass merged commit d428af7 into main Nov 18, 2023
@Chemaclass Chemaclass deleted the feat/upgrade-option branch November 18, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants