Skip to content

test(sshfs,scp): create files on the fly to work around Windows filesystem #1408

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

Merged
merged 2 commits into from
Aug 8, 2025

Conversation

akinomyoga
Copy link
Collaborator

@akinomyoga akinomyoga commented Aug 3, 2025

This addresses the remaining issue with PR 1397, #1397 (comment).

e8aeed7 Also, the second commit adds tests for the regression of PR 1397 with the scp command, which was not added in PR 1397 because I thought it could not be tested. As commented in #1397 (comment), it was actually possible. I'm adding tests using completion.output in this patch.

@akinomyoga akinomyoga changed the title test(sshfs): create files on the fly to work around Windows filesystem test(sshfs,scp): create files on the fly to work around Windows filesystem Aug 3, 2025
Copy link
Owner

Choose a reason for hiding this comment

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

Should we not remove the test/fixtures/sshfs dir and its contents as part of this change? It would seem to be unused after this, and would still cause problems if around I guess.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, right. I completely forgot that. I'll address it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The test has not been prepared because the ending spaces cannot be
tested with the typical comparison of `completion == "..."` or
`completion == [...]`, but it turned out that existing test cases uses
`completion.output` to check suffixing spaces.  This patch implements
the test using `completion.output`.

scop#1397 (comment)
Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

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

Thanks!

@scop scop merged commit 0396d24 into scop:main Aug 8, 2025
7 checks passed
@akinomyoga akinomyoga deleted the scp-refactor-1-4 branch August 8, 2025 23:37
@akinomyoga
Copy link
Collaborator Author

Thank you!

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