Merge pull request #7381 from thalesmg/fix-telemetry-mac-symlink
fix(test): use a real copy of BUILD_INFO for testing
This commit is contained in:
commit
a310d2390e
|
@ -47,7 +47,7 @@ init_per_testcase(t_get_telemetry, Config) ->
|
||||||
emqx_telemetry,
|
emqx_telemetry,
|
||||||
read_raw_build_info,
|
read_raw_build_info,
|
||||||
fun() ->
|
fun() ->
|
||||||
{ok, Path} = file:read_link(filename:join([DataDir, "BUILD_INFO"])),
|
Path = filename:join([DataDir, "BUILD_INFO"]),
|
||||||
{ok, Template} = file:read_file(Path),
|
{ok, Template} = file:read_file(Path),
|
||||||
Vars0 = [
|
Vars0 = [
|
||||||
{build_info_arch, "arch"},
|
{build_info_arch, "arch"},
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../../../rel/BUILD_INFO
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
arch: "{{ build_info_arch }}"
|
||||||
|
wordsize: {{ build_info_wordsize }}
|
||||||
|
os: "{{ build_info_os }}"
|
||||||
|
erlang: "{{ build_info_erlang }}"
|
||||||
|
elixir: "{{ build_info_elixir }}"
|
||||||
|
relform: "{{ build_info_relform }}"
|
Loading…
Reference in New Issue