Skip to content

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Feb 12, 2026

Summary

  • Redirect stdout/stderr to /dev/null for fuser -k and umount cleanup commands in prepare-testmachine-chroot that may fail when there is nothing to kill/unmount, matching the pattern already used in test-on-testmachine lines 94 and 96
  • Use grep -q and redirect ps stderr in test-on-testmachine process checks for known benign processes (minilogd, gpg-agent) since we only care about the exit code

Ticket: ENT-12619

🤖 Generated with Claude Code

Build Status

Cleanup commands in prepare-testmachine-chroot (fuser, umount) may fail
when there is nothing to kill or unmount, producing confusing error
output in Jenkins logs. Redirect their output to /dev/null, matching the
pattern already used in test-on-testmachine lines 94 and 96.

Also suppress stdout/stderr from ps|grep process checks in
test-on-testmachine that look for known benign processes (minilogd,
gpg-agent). We only care about the exit code, not the output, so use
grep -q and redirect ps stderr.

Ticket: ENT-12619
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@larsewi larsewi merged commit 326bf73 into cfengine:master Feb 13, 2026
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants