fix(process): expose launcher identity mismatch
This commit is contained in:
1 parent
9c3aec8131
commit
62ac73cdd7
2 files changed
+4
-3
No files matched your search
@@ -322,7 +322,7 @@ const launcherIdentityFailure = (
|
||||
ownership.expectedCommand !== undefined &&
|
||||
!matchesOwnedProcessCommand(launcher.command, ownership.expectedCommand)
|
||||
)
|
||||
return "owned launcher command identity did not match";
|
||||
return `owned launcher command identity did not match (observed=${launcher.command}; expected=${ownership.expectedCommand})`;
|
||||
return null;
|
||||
};
|
||||
|
||||
@@ -477,7 +477,7 @@ export const observeOwnedProcessLineage = async (
|
||||
)
|
||||
return unavailableLineage(
|
||||
ownership,
|
||||
"owned launcher command identity did not match",
|
||||
`owned launcher command identity did not match (observed=${launcher.command}; expected=${ownership.expectedCommand})`,
|
||||
);
|
||||
const descendants = descendantsOf(launcher.pid, processes);
|
||||
for (const member of [launcher, ...descendants]) {
|
||||
|
||||
@@ -522,7 +522,8 @@ describe("owned process-group cleanup", () => {
|
||||
),
|
||||
).toEqual({
|
||||
cleaned: false,
|
||||
reason: "owned launcher command identity did not match",
|
||||
reason:
|
||||
"owned launcher command identity did not match (observed=fixture; expected=/owned/hopper)",
|
||||
});
|
||||
expect(signalGroup).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user