Skip to content

Commit 5ed0063

Browse files
committed
Revert "additional env var to force saying we're in tty"
This reverts commit c70f3d2.
1 parent 1102157 commit 5ed0063

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/JavaKitTests/BasicRuntimeTests.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import JavaKit
1616
import JavaKitNetwork
1717
import JavaKitVM
1818
import Testing
19-
import Foundation
2019

2120
#if os(Linux)
2221
import Glibc
@@ -95,10 +94,7 @@ var isLinux: Bool {
9594

9695
/// Whether we're running on MacOS in an interactive terminal session.
9796
var isMacOSTerminal: Bool {
98-
isMacOS && (
99-
isatty(STDOUT_FILENO) == 1 ||
100-
ProcessInfo.processInfo.environment["IS_TTY"] != nil // since 'swift test' still sometimes hides the fact we're in tty
101-
)
97+
isMacOS && isatty(STDOUT_FILENO) == 1
10298
}
10399

104100
/// Whether we're running on MacOS.

0 commit comments

Comments
 (0)