Skip to content

Commit d1aad16

Browse files
committed
Don't set attachments path if no file I/O
1 parent 37f0b71 commit d1aad16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Testing/Running/Runner.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,11 @@ extension Runner {
369369
private static func _run(_ runner: Self) async {
370370
var runner = runner
371371
runner.configureEventHandlerRuntimeState()
372+
#if !SWT_NO_FILE_IO
372373
if let attachmentDirectoryPath = runner.configuration.attachmentDirectoryPath {
373374
runner.configureToWriteAttachments(toDirectoryAtPath: attachmentDirectoryPath)
374375
}
376+
#endif
375377

376378
// Track whether or not any issues were recorded across the entire run.
377379
let issueRecorded = Locked(rawValue: false)

0 commit comments

Comments
 (0)