Преглед изворни кода

Set 'boot_modules' when starting emqx apps.

Feng Lee пре 6 година
родитељ
комит
7175e4a74c

+ 1 - 0
test/emqx_access_SUITE.erl

@@ -63,6 +63,7 @@ groups() ->
      }].
      }].
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules([router, broker]),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_alarm_handler_SUITE.erl

@@ -26,6 +26,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([], fun set_special_configs/1),
     emqx_ct_helpers:start_apps([], fun set_special_configs/1),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_broker_SUITE.erl

@@ -49,6 +49,7 @@ groups() ->
      }].
      }].
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules([router, broker]),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_channel_SUITE.erl

@@ -31,6 +31,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules([router, broker]),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_client_SUITE.erl

@@ -70,6 +70,7 @@ groups() ->
     ].
     ].
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 1
test/emqx_config_SUITE.erl

@@ -36,4 +36,4 @@ t_get_env(_) ->
     application:set_env(emqx, undefined_key, hello),
     application:set_env(emqx, undefined_key, hello),
     ?assertEqual(hello, emqx_config:get_env(undefined_key)),
     ?assertEqual(hello, emqx_config:get_env(undefined_key)),
     ?assertEqual(hello, emqx_config:get_env(undefined_key, default_value)),
     ?assertEqual(hello, emqx_config:get_env(undefined_key, default_value)),
-    application:unset_env(emqx, undefined_key).
+    application:unset_env(emqx, undefined_key).

+ 1 - 0
test/emqx_connection_SUITE.erl

@@ -24,6 +24,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 1
test/emqx_ctl_SUITE.erl

@@ -25,6 +25,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules([]),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 
@@ -51,4 +52,3 @@ test(_) ->
     io:format("Hello world").
     io:format("Hello world").
 
 
 
 
-

+ 1 - 0
test/emqx_mod_subscription_SUITE.erl

@@ -28,6 +28,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([emqx]),
     emqx_ct_helpers:start_apps([emqx]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_plugins_SUITE.erl

@@ -37,6 +37,7 @@ init_per_suite(Config) ->
     code:add_path(filename:join([AppPath, "_build", "default", "lib", "emqx_mini_plugin", "ebin"])),
     code:add_path(filename:join([AppPath, "_build", "default", "lib", "emqx_mini_plugin", "ebin"])),
 
 
     put(loaded_file, filename:join([DataPath, "loaded_plugins"])),
     put(loaded_file, filename:join([DataPath, "loaded_plugins"])),
+    emqx_ct_helpers:boot_modules([]),
     emqx_ct_helpers:start_apps([], fun set_sepecial_cfg/1),
     emqx_ct_helpers:start_apps([], fun set_sepecial_cfg/1),
 
 
     Config.
     Config.

+ 1 - 0
test/emqx_request_responser_SUITE.erl

@@ -22,6 +22,7 @@
 -include_lib("common_test/include/ct.hrl").
 -include_lib("common_test/include/ct.hrl").
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_router_SUITE.erl

@@ -27,6 +27,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules([router]),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_shared_sub_SUITE.erl

@@ -32,6 +32,7 @@
 all() -> emqx_ct:all(?SUITE).
 all() -> emqx_ct:all(?SUITE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_sys_mon_SUITE.erl

@@ -42,6 +42,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_tracer_SUITE.erl

@@ -26,6 +26,7 @@
 all() -> [t_start_traces].
 all() -> [t_start_traces].
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.
 
 

+ 1 - 0
test/emqx_ws_connection_SUITE.erl

@@ -24,6 +24,7 @@
 all() -> emqx_ct:all(?MODULE).
 all() -> emqx_ct:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_ct_helpers:boot_modules(all),
     emqx_ct_helpers:start_apps([]),
     emqx_ct_helpers:start_apps([]),
     Config.
     Config.