Skip to content

rabbit_ct_helpers: Fix crash detection in node logs#9373

Merged
dumbbell merged 1 commit intomainfrom
fix-test-node-crash-detection
Sep 12, 2023
Merged

rabbit_ct_helpers: Fix crash detection in node logs#9373
dumbbell merged 1 commit intomainfrom
fix-test-node-crash-detection

Conversation

@dumbbell
Copy link
Copy Markdown
Collaborator

... introduced in commit cb8b0bf.

Why

Two things:

  1. The change was incorrectly ported from the Khepri integration branch. Indeed, it lacked the part where it set the log_locations key in the NodeConfig variable.
  2. The return value of os:getenv/1 was incorrectly matched: this function returns false when an environment variable is unset, not undefined.

References #9290.

... introduced in commit cb8b0bf.

[Why]
Two things:
1. The change was incorrectly ported from the Khepri integration branch.
   Indeed, it lacked the part where it set the `log_locations` key in
   the `NodeConfig` variable.
2. The return value of `os:getenv/1` was incorrectly matched: this
   function returns `false` when an environment variable is unset, not
   `undefined`.
@dumbbell dumbbell added this to the 3.13.0 milestone Sep 12, 2023
@dumbbell dumbbell requested a review from ansd September 12, 2023 11:53
@dumbbell dumbbell self-assigned this Sep 12, 2023
@michaelklishin michaelklishin changed the title rabbit_ct_helpers: Fix crash detection rabbit_ct_helpers: Fix crash detection in node logs Sep 12, 2023
@dumbbell dumbbell marked this pull request as ready for review September 12, 2023 14:57
@dumbbell dumbbell merged commit 125ea4e into main Sep 12, 2023
@dumbbell dumbbell deleted the fix-test-node-crash-detection branch September 12, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants