From ace6ad25e91e8da0181b6b53efb30dcaec1b71bd Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Thu, 12 May 2022 11:06:06 +0200 Subject: [PATCH] fix(bpapi): Compile the code in check profile before running xref --- Makefile | 2 +- apps/emqx/test/emqx_bpapi_static_checks.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9bcae907d..686aaa099 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ ct: $(REBAR) conf-segs .PHONY: static_checks static_checks: - @$(REBAR) as check do xref, dialyzer, ct --suite apps/emqx/test/emqx_static_checks --readable $(CT_READABLE) + @$(REBAR) as check do dialyzer, xref, ct --suite apps/emqx/test/emqx_static_checks --readable $(CT_READABLE) APPS=$(shell $(CURDIR)/scripts/find-apps.sh) diff --git a/apps/emqx/test/emqx_bpapi_static_checks.erl b/apps/emqx/test/emqx_bpapi_static_checks.erl index d906ea29a..08ecf4632 100644 --- a/apps/emqx/test/emqx_bpapi_static_checks.erl +++ b/apps/emqx/test/emqx_bpapi_static_checks.erl @@ -218,7 +218,7 @@ dump() -> case { filelib:wildcard(project_root_dir() ++ "/*_plt"), - filelib:wildcard(project_root_dir() ++ "/_build/emqx*/lib") + filelib:wildcard(project_root_dir() ++ "/_build/check/lib") } of {[PLT | _], [RelDir | _]} ->