惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: require powershell command runner · openclaw/opencl...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -61,6 +61,12 @@ describe("install.ps1 failure handling", () => {

6161

const source = readFileSync(SCRIPT_PATH, "utf8");

6262

const powershell = findPowerShell();

6363

const runIfPowerShell = powershell ? it : it.skip;

64+

const runPowerShell = (args: string[]) => {

65+

if (!powershell) {

66+

throw new Error("PowerShell is not available");

67+

}

68+

return spawnSync(powershell, args, { encoding: "utf8" });

69+

};

64706571

it("does not exit directly from inside Main", () => {

6672

const mainBody = extractFunctionBody(source, "Main");

@@ -103,11 +109,14 @@ describe("install.ps1 failure handling", () => {

103109

);

104110

chmodSync(scriptPath, 0o755);

105111106-

const result = spawnSync(

107-

powershell!,

108-

["-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", scriptPath],

109-

{ encoding: "utf8" },

110-

);

112+

const result = runPowerShell([

113+

"-NoLogo",

114+

"-NoProfile",

115+

"-ExecutionPolicy",

116+

"Bypass",

117+

"-File",

118+

scriptPath,

119+

]);

111120112121

expect(result.status).toBe(0);

113122

expect(result.stderr).toBe("");

@@ -119,11 +128,14 @@ describe("install.ps1 failure handling", () => {

119128

writeFileSync(scriptPath, createFailingNodeFixture(source));

120129

chmodSync(scriptPath, 0o755);

121130122-

const result = spawnSync(

123-

powershell!,

124-

["-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", scriptPath],

125-

{ encoding: "utf8" },

126-

);

131+

const result = runPowerShell([

132+

"-NoLogo",

133+

"-NoProfile",

134+

"-ExecutionPolicy",

135+

"Bypass",

136+

"-File",

137+

scriptPath,

138+

]);

127139128140

expect(result.status).toBe(1);

129141

});

@@ -142,9 +154,7 @@ describe("install.ps1 failure handling", () => {

142154

"}",

143155

'Write-Output "alive-after-install"',

144156

].join("\n");

145-

const result = spawnSync(powershell!, ["-NoLogo", "-NoProfile", "-Command", command], {

146-

encoding: "utf8",

147-

});

157+

const result = runPowerShell(["-NoLogo", "-NoProfile", "-Command", command]);

148158149159

expect(result.status).toBe(0);

150160

expect(result.stdout).toContain("caught=OpenClaw installation failed with exit code 1.");

@@ -177,11 +187,14 @@ describe("install.ps1 failure handling", () => {

177187

);

178188

chmodSync(scriptPath, 0o755);

179189180-

const result = spawnSync(

181-

powershell!,

182-

["-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", scriptPath],

183-

{ encoding: "utf8" },

184-

);

190+

const result = runPowerShell([

191+

"-NoLogo",

192+

"-NoProfile",

193+

"-ExecutionPolicy",

194+

"Bypass",

195+

"-File",

196+

scriptPath,

197+

]);

185198186199

expect(result.status).toBe(0);

187200

expect(result.stderr).toBe("");

@@ -219,11 +232,14 @@ describe("install.ps1 failure handling", () => {

219232

);

220233

chmodSync(scriptPath, 0o755);

221234222-

const result = spawnSync(

223-

powershell!,

224-

["-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", scriptPath],

225-

{ encoding: "utf8" },

226-

);

235+

const result = runPowerShell([

236+

"-NoLogo",

237+

"-NoProfile",

238+

"-ExecutionPolicy",

239+

"Bypass",

240+

"-File",

241+

scriptPath,

242+

]);

227243228244

expect(result.status).toBe(0);

229245

expect(result.stderr).toBe("");