goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.58k stars 470 forks source link

Command empty strings #839

Closed aelsabbahy closed 1 year ago

aelsabbahy commented 1 year ago
Checklist

Description of change

Changed the behavior of goss add on a command, if the value of stdout or stderr is empty, it will be defaulted to an empty string instead of an empty array. The behavior remains unchanged when there is output; the value will be an array.

This approach provides the following benefits: