Enhance edge gateway logs handling and fix shell socket newline character formatting
This commit is contained in:
@@ -564,7 +564,9 @@ async function main() {
|
|||||||
token: authToken,
|
token: authToken,
|
||||||
});
|
});
|
||||||
|
|
||||||
const timeline = Array.isArray(logs?.data?.entries) ? logs.data.entries : [];
|
const timeline = Array.isArray(logs?.data?.entries)
|
||||||
|
? logs.data.entries
|
||||||
|
: (Array.isArray(logs?.data?.timeline) ? logs.data.timeline : []);
|
||||||
|
|
||||||
return timeline.some((entry) => {
|
return timeline.some((entry) => {
|
||||||
const nestedEntry = entry?.entry && typeof entry.entry === "object" ? entry.entry : null;
|
const nestedEntry = entry?.entry && typeof entry.entry === "object" ? entry.entry : null;
|
||||||
@@ -607,7 +609,7 @@ async function main() {
|
|||||||
|
|
||||||
shellSocket.send(JSON.stringify({
|
shellSocket.send(JSON.stringify({
|
||||||
type: "input",
|
type: "input",
|
||||||
data: "printf 'edge-e2e-shell\\n'; exit\r",
|
data: "printf 'edge-e2e-shell\\n'; exit\n",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
await waitForSocketMessage(
|
await waitForSocketMessage(
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user