A local-first multi-agent app development platform, built on PenguinHarness
fix(use-seedance): 出片测试在 macOS 上按真实路径比对,CI 不再整片红
lmliheng2f8005ebb5c8
diff --git a/plugins/use-seedance/test/seedance.test.mjs b/plugins/use-seedance/test/seedance.test.mjsindex 3e6f08db..cacd7f38 100644--- a/plugins/use-seedance/test/seedance.test.mjs+++ b/plugins/use-seedance/test/seedance.test.mjs@@ -111,7 +111,12 @@ const execFileAsync = promisify(execFile);* would leave it unable to answer, which is a hang rather than a failing test.*/async function run(args, { env = {}, workspace } = {}) {- const dir = workspace ?? fs.mkdtempSync(path.join(os.tmpdir(), "seedance-test-"));+ // The child resolves a relative `--out` against its own cwd, and the OS reports that as the real+ // path — on macOS a tmpdir of /var/… comes back as /private/var/… — so hand the real one back and+ // let the callers compare against the same thing.+ const dir = fs.realpathSync(+ workspace ?? fs.mkdtempSync(path.join(os.tmpdir(), "seedance-test-")),+ );try {const { stdout, stderr } = await execFileAsync(process.execPath, [SCRIPT, ...args], {cwd: dir,