Skip to content

Commit 29e34d6

Browse files
authored
Do not pollute home directory with test data (#6371)
We can just write those files into /tmp (cherry picked from commit 6c05b06)
1 parent ca31b5e commit 29e34d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/CommandsTests/SwiftToolTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ final class SwiftToolTests: CommandsTestCase {
161161

162162
// custom .netrc file
163163
do {
164-
let customPath = try fs.homeDirectory.appending(component: UUID().uuidString)
164+
let customPath = try fs.tempDirectory.appending(component: UUID().uuidString)
165165
try fs.writeFileContents(customPath) {
166166
"machine mymachine.labkey.org login [email protected] password custom"
167167
}
@@ -195,7 +195,7 @@ final class SwiftToolTests: CommandsTestCase {
195195

196196
// custom .netrc file
197197
do {
198-
let customPath = try fs.homeDirectory.appending(component: UUID().uuidString)
198+
let customPath = try fs.tempDirectory.appending(component: UUID().uuidString)
199199
try fs.writeFileContents(customPath) {
200200
"machine mymachine.labkey.org login [email protected] password custom"
201201
}

0 commit comments

Comments
 (0)