(args)
| 26 | } |
| 27 | |
| 28 | async function runKimi(args) { |
| 29 | try { |
| 30 | const { stdout, stderr } = await execFileAsync(executablePath, args, { |
| 31 | cwd: appRoot, |
| 32 | maxBuffer: 1024 * 1024 * 16, |
| 33 | }); |
| 34 | return `${stdout}${stderr}`; |
| 35 | } catch (error) { |
| 36 | const detail = [error.stdout?.trim(), error.stderr?.trim(), error.message] |
| 37 | .filter(Boolean) |
| 38 | .join('\n'); |
| 39 | fail(`Native smoke failed: ${executablePath} ${args.join(' ')}\n${detail}`); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | async function runKimiWithEnv(args, env) { |
| 44 | try { |