Ensure attachments path directory is created#1788
Open
bkhouri wants to merge 1 commit into
Open
Conversation
bkhouri
force-pushed
the
t/main/gh1665_create_attachment-path-if-it-does-not-exists
branch
from
July 13, 2026 19:52
cb47ad0 to
aab38cf
Compare
grynspan
requested changes
Jul 15, 2026
grynspan
left a comment
Contributor
There was a problem hiding this comment.
This is a lot of new code just to create a directory. I'd suggest we just leverage Foundation for it unless we're doing it a lot. (So, yes, you did the right thing avoiding Foundation, but sometimes it's not worth the effort!)
bkhouri
force-pushed
the
t/main/gh1665_create_attachment-path-if-it-does-not-exists
branch
2 times, most recently
from
July 15, 2026 21:20
58f0c81 to
9b7fa6d
Compare
bkhouri
force-pushed
the
t/main/gh1665_create_attachment-path-if-it-does-not-exists
branch
2 times, most recently
from
July 15, 2026 22:03
e919a0e to
0388251
Compare
bkhouri
marked this pull request as ready for review
July 15, 2026 22:04
bkhouri
requested review from
briancroom,
harlanhaskins,
jerryjrchen and
stmontgomery
as code owners
July 15, 2026 22:04
bkhouri
marked this pull request as draft
July 15, 2026 22:04
bkhouri
commented
Jul 15, 2026
grynspan
requested changes
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
grynspan
reviewed
Jul 15, 2026
bkhouri
force-pushed
the
t/main/gh1665_create_attachment-path-if-it-does-not-exists
branch
5 times, most recently
from
July 16, 2026 16:21
ec1e385 to
c23543e
Compare
grynspan
requested changes
Jul 16, 2026
grynspan
left a comment
Contributor
There was a problem hiding this comment.
Minor changes requested, looks much cleaner now!
When running `swift test --attachments-path /does/not/exist`, the Swift Testing library will fail with an error like: ``` Invalid value "/path/does/not/exists" for argument ---attachments-path ``` Ensure the path specified by `--attachments-path` is created, and update the error message to remote the additional `-` in the argument name. Closes swiftlang#1665
bkhouri
force-pushed
the
t/main/gh1665_create_attachment-path-if-it-does-not-exists
branch
from
July 16, 2026 19:56
c23543e to
e5321fb
Compare
bkhouri
marked this pull request as ready for review
July 16, 2026 19:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running
swift test --attachments-path /does/not/exist, the Swift Testing library will fail with an error like:Ensure the path specified by
--attachments-pathis created, and update the error message to remote the additional-in the argument name.Closes #1665
Checklist: