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:
Thales Macedo Garitezi 2022-03-24 09:04:28 -03:00 committed by GitHub
commit a310d2390e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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"},

View File

@ -1 +0,0 @@
../../../../rel/BUILD_INFO

View File

@ -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 }}"