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

put leading new lines in shellrc additions #13

Merged

Conversation

jay-aye-see-kay
Copy link
Contributor

@jay-aye-see-kay jay-aye-see-kay commented Jan 25, 2024

This fixes a bug experienced by one developer during onboarding with team Survey Reporting where the last line of existing config was concatenated because there was a missing newline at the end of the file.

I tried to add a test to ensure the newline was put there but couldn't get it working with assert_output --partial or assert_output --regexp. I can see in the test failures that the newline is actually there, it just doesn't seem to want to do a multi-line match.

https://cultureamp.atlassian.net/browse/FEF-1009

- this ensures no line concatenation if there is a missing newline at
  the end of the file
@cultureamp-brucew
Copy link
Contributor

What exactly is the bug this PR fixing?

@jay-aye-see-kay jay-aye-see-kay merged commit 85b06d7 into main Jan 25, 2024
4 checks passed
@jay-aye-see-kay jay-aye-see-kay deleted the jdr/FEF-1009-leading-new-lines-in-shellrc-additions branch January 25, 2024 01:16
@jay-aye-see-kay
Copy link
Contributor Author

What exactly is the bug this PR fixing?

Updated PR to include bug description from ticket

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.

2 participants