Skip to content

Commit 1a0381e

Browse files
committed
[Test] Force unicode_filename JSON verification to use UTF-8
On older Linux CI machines the JSON file being verified was opened as ascii, leading to encoding errors. Force the validation to use UTF-8. There is likely a bigger configuration issue on these bots but this is a start.
1 parent f6870b7 commit 1a0381e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ScanDependencies/unicode_filename.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -scan-dependencies %/s %/S/Inputs/unicode_filёnamё.swift -o %t/deps.json
33

44
// Check the contents of the JSON output
5-
// RUN: %validate-json %t/deps.json &>/dev/null
5+
// RUN: env PYTHONIOENCODING=UTF-8 %validate-json < %t/deps.json
66
// RUN: %FileCheck %s < %t/deps.json
77

88
print(foo())

0 commit comments

Comments
 (0)