Closed taurus-forever closed 12 months ago
This specific daemon sets the process-name via perl's $0 assignment, which includes arguments in there. As on Linux the comm limit is 15 characters, the space is shown but not the subsequent arguments.
I'm not convinced this is a problem in goss, as trimming on space could make it stop matching on other things, which looks like a breaking change.
Thank you for bringing this to my attention. Updated doc to avoid this issue in the future cat -E /proc/<PID>/comm
will show whitespace.
Describe the bug Goss doesn't trim the output of ps command which can cause false alarm.
How To Reproduce
Expected Behavior Goss should trim ps output befome matching it to the value from YAML file.
Actual Behavior Goss is not removing trailing space from ps output:
Environment: