You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log multiple lines, log tests, and logging bug fixes (#527)
## Overview
Changes:
- Log multiple lines
Allow the `log` command (defined in `scripts/logging.include.sh`) to log
messages that span multiple lines.
This also adds unit tests for the `scripts/logging.include.sh` file.
Fixes:
- Logging bug fixes:
- Setting `NO_COLOR` or setting `BIRDHOUSE_COLOR` to a non-integer value
raised an error since `BIRDHOUSE_COLOR`
was tested with the numeric comparison `-eq`. This has now been fixed.
- Providing an invalid log message level (e.g. `log BADLEVEL message`)
would log a critical error message but not
exit unless the `set -o pipefail` option was set. This has been updated
so that the script will exit as intended
even if the `pipefail` option is not set.
## Changes
**Non-breaking changes**
- logging behaviour changes for multiline logs
- bug fixes
**Breaking changes**
- None
## Related Issue / Discussion
## Additional Information
Links to other issues or sources.
## CI Operations
<!--
The test suite can be run using a different DACCS config with
``birdhouse_daccs_configs_branch: branch_name`` in the PR description.
To globally skip the test suite regardless of the commit message use
``birdhouse_skip_ci`` set to ``true`` in the PR description.
Using ``[<cmd>]`` (with the brackets) where ``<cmd> = skip ci`` in the
commit message will override ``birdhouse_skip_ci`` from the PR
description.
Such commit command can be used to override the PR description behavior
for a specific commit update.
However, a commit message cannot 'force run' a PR which the description
turns off the CI.
To run the CI, the PR should instead be updated with a ``true`` value,
and a running message can be posted in following PR comments to trigger
tests once again.
-->
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false
0 commit comments