Skip to content

Commit 44c1cc8

Browse files
committed
fix(e2e): check onboarding systemd noise
1 parent 2e3b4b5 commit 44c1cc8

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/e2e/lib/onboard/scenario.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ run_case_local_basic() {
233233
--skip-ui \
234234
--skip-health
235235

236+
validate_local_basic_log /tmp/openclaw-onboard-local-basic.log
237+
236238
# Assert config + workspace scaffolding.
237239
workspace_dir="$OPENCLAW_STATE_DIR/workspace"
238240
sessions_dir="$OPENCLAW_STATE_DIR/agents/main/sessions"

test/scripts/e2e-shell-tempfiles.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ describe("e2e shell tempfile hygiene", () => {
3838
expect(contents).not.toContain('if ! wait "$wizard_pid"');
3939
expect(contents).toContain('wait "$wizard_pid" || wizard_status=$?');
4040
});
41+
42+
it("checks local onboarding logs for systemd noise", async () => {
43+
const contents = await readFile("scripts/e2e/lib/onboard/scenario.sh", "utf8");
44+
45+
expect(contents).toContain("validate_local_basic_log /tmp/openclaw-onboard-local-basic.log");
46+
expect(contents).toContain(
47+
'openclaw_e2e_assert_log_not_contains "$log_path" "systemctl --user unavailable"',
48+
);
49+
});
4150
});

0 commit comments

Comments
 (0)