adds Clean Copy Support
This commit is contained in:
@@ -35,6 +35,15 @@ import Testing
|
||||
#expect(TerminalLaunch.environment(from: ["LC_ALL": "nl_NL.UTF-8"])["LANG"] == nil)
|
||||
}
|
||||
|
||||
@Test func bothPanesTellTheChildItRunsInHelder() {
|
||||
let base = ["TERM_PROGRAM": "Apple_Terminal", "TERM_PROGRAM_VERSION": "455"]
|
||||
for kind in TerminalKind.allCases {
|
||||
let env = TerminalLaunch.make(kind: kind, config: .defaults, projectRoot: "/p", environment: base).environment
|
||||
#expect(env["TERM_PROGRAM"] == "Helder")
|
||||
#expect(env["TERM_PROGRAM_VERSION"] == nil)
|
||||
}
|
||||
}
|
||||
|
||||
@Test func agentRunsTheCommandThroughAnInteractiveShell() {
|
||||
let launch = TerminalLaunch.make(kind: .agent, config: .defaults, projectRoot: "/p", environment: ["SHELL": "/bin/bash"])
|
||||
#expect(launch.executable == "/bin/bash")
|
||||
|
||||
Reference in New Issue
Block a user