mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 09:21:16 +00:00
fix(ci): consume owned command failure output in verifiers (#9334)
* fix(ci): read owned CLI failure output in Apple verifier * fix(ci): preserve packaged Ghidra command failure diagnostics --------- Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
2ac8578827
commit
c818ca9042
2 files changed
+5
-3
No files matched your search
@@ -75,8 +75,10 @@ if (!internalWorkspace) {
|
||||
commands === undefined ? workspaceOwner.close() : commands.close(),
|
||||
]);
|
||||
} catch (cause) {
|
||||
if (typeof cause.stdout === "string") process.stdout.write(cause.stdout);
|
||||
if (typeof cause.stderr === "string") process.stderr.write(cause.stderr);
|
||||
const stdout = cause?.snapshot?.stdout?.text;
|
||||
const stderr = cause?.snapshot?.stderr?.text;
|
||||
if (typeof stdout === "string") process.stdout.write(stdout);
|
||||
if (typeof stderr === "string") process.stderr.write(stderr);
|
||||
throw cause;
|
||||
}
|
||||
const report = JSON.parse(result.stdout);
|
||||
|
||||
@@ -394,7 +394,7 @@ try {
|
||||
} catch (cause) {
|
||||
assert.equal(cause.code, 1);
|
||||
cliFailure = analysisErrorProjectionSchema.parse(
|
||||
cliOperationFailurePayload(JSON.parse(cause.stdout)),
|
||||
cliOperationFailurePayload(JSON.parse(cause.snapshot.stdout.text)),
|
||||
);
|
||||
}
|
||||
assert.equal(cliFailure.code, "unsupported_target");
|
||||
|
||||
Reference in new issue
Block a user