Skip to content

Commit 3294c84

Browse files
committed
Fix test_issue_693
1 parent 3375e2b commit 3294c84

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Tests/AppTests/AnalyzerTests.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,11 +1143,7 @@ class AnalyzerTests: AppTestCase {
11431143
Current.fileManager.fileExists = { @Sendable _ in true }
11441144
let commands = QueueIsolated<[String]>([])
11451145
Current.shell.run = { @Sendable cmd, _ in
1146-
commands.withValue {
1147-
// mask variable checkout
1148-
let checkoutDir = "/checkouts"
1149-
$0.append(cmd.description.replacingOccurrences(of: checkoutDir, with: "..."))
1150-
}
1146+
commands.withValue { $0.append(cmd.description) }
11511147
if cmd == .gitFetchAndPruneTags { throw TestError.simulatedFetchError }
11521148
return ""
11531149
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
▿ 7 elements
2-
- "rm -f .../github.com-foo-1/.git/HEAD.lock"
3-
- "rm -f .../github.com-foo-1/.git/index.lock"
2+
- "rm -f SPI-checkouts/github.com-foo-1/.git/HEAD.lock"
3+
- "rm -f SPI-checkouts/github.com-foo-1/.git/index.lock"
44
- "git reset --hard"
55
- "git clean -fdx"
66
- "git fetch --tags --prune-tags --prune"
7-
- "rm -r -f .../github.com-foo-1"
8-
- "git clone https://github.com/foo/1 .../github.com-foo-1 --quiet"
7+
- "rm -r -f SPI-checkouts/github.com-foo-1"
8+
- "git clone https://github.com/foo/1 SPI-checkouts/github.com-foo-1 --quiet"

0 commit comments

Comments
 (0)