rabbit_ct_helpers: Fix crash detection
... introduced in commit cb8b0bf89b.
[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`.
This commit is contained in:
parent
c30ae6734a
commit
0ec788bd16
|
|
@ -793,10 +793,12 @@ query_node(Config, NodeConfig) ->
|
|||
[rabbit, plugins_dir]),
|
||||
{ok, EnabledPluginsFile} = rpc(Config, Nodename, application, get_env,
|
||||
[rabbit, enabled_plugins_file]),
|
||||
LogLocations = rpc(Config, Nodename, rabbit, log_locations, []),
|
||||
Vars0 = [{pid_file, PidFile},
|
||||
{data_dir, DataDir},
|
||||
{plugins_dir, PluginsDir},
|
||||
{enabled_plugins_file, EnabledPluginsFile}],
|
||||
{enabled_plugins_file, EnabledPluginsFile},
|
||||
{log_locations, LogLocations}],
|
||||
Vars = try
|
||||
EnabledFeatureFlagsFile = rpc(Config, Nodename,
|
||||
rabbit_feature_flags,
|
||||
|
|
@ -1018,7 +1020,7 @@ stop_rabbitmq_nodes(Config) ->
|
|||
false;
|
||||
undefined ->
|
||||
case os:getenv("FIND_CRASHES") of
|
||||
undefined -> true;
|
||||
false -> true;
|
||||
"1" -> true;
|
||||
"yes" -> true;
|
||||
"true" -> true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue